<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge" >
  <link rel="dns-prefetch" href="http://hannah-bingo.github.io">
  <title>vue2 | 翼遥bingo的个人博客</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="直接在代码中debugger，就可调试">
<meta property="og:type" content="article">
<meta property="og:title" content="vue2">
<meta property="og:url" content="http://hannah-bingo.github.io/2021/08/30/E_vue2/index.html">
<meta property="og:site_name" content="翼遥bingo的个人博客">
<meta property="og:description" content="直接在代码中debugger，就可调试">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://i.loli.net/2021/08/17/F3CqG184MnKBVSN.png">
<meta property="og:image" content="https://i.loli.net/2021/08/17/FTeRqfXl3vw658P.png">
<meta property="og:image" content="https://i.loli.net/2021/08/17/W8E2R65eqBQFsPo.png">
<meta property="og:image" content="d:/Front-end/md%E7%AC%94%E8%AE%B0/vue/vue/pc/8.png">
<meta property="og:image" content="https://i.loli.net/2021/08/18/rBGLhO6x91Z8w5g.png">
<meta property="og:image" content="https://i.loli.net/2021/08/18/LaWrdJhM7xsKgXb.png">
<meta property="og:image" content="https://i.loli.net/2021/08/18/Q79pk2oFeTRBDVz.png">
<meta property="og:image" content="https://i.loli.net/2021/08/20/ZGNYQlMoIS3qE2y.png">
<meta property="og:image" content="d:/Front-end/md%E7%AC%94%E8%AE%B0/vue/vue/pc/12.png">
<meta property="og:image" content="d:/Front-end/md%E7%AC%94%E8%AE%B0/vue/vue/pc/13.png">
<meta property="og:image" content="https://i.loli.net/2021/09/02/z62kT4aiCHRs7c9.png">
<meta property="og:image" content="https://i.loli.net/2021/09/03/2E8iCjft7SNHUPm.png">
<meta property="og:image" content="d:/Front-end/md%E7%AC%94%E8%AE%B0/vue/vue/pc/16.png">
<meta property="og:image" content="https://i.loli.net/2021/09/05/PBgFCaLrbf9niZv.png">
<meta property="og:image" content="https://i.loli.net/2021/09/06/chXWEwYoefNbxC3.png">
<meta property="og:image" content="https://i.loli.net/2021/09/06/Eb2DRMg9Bsz3TPp.png">
<meta property="og:image" content="d:/Front-end/md%E7%AC%94%E8%AE%B0/vue/vue/pc/20.png">
<meta property="og:image" content="https://i.loli.net/2021/09/06/pSr2udavhtHmgjn.png">
<meta property="article:published_time" content="2021-08-29T16:00:00.000Z">
<meta property="article:modified_time" content="2021-09-19T09:21:55.462Z">
<meta property="article:author" content="Hannah 翼遥bingo">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://i.loli.net/2021/08/17/F3CqG184MnKBVSN.png">
  
    <link rel="alternative" href="/atom.xml" title="翼遥bingo的个人博客" type="application/atom+xml">
  
  
    <link rel="icon" href="/assets/yiyao_bingo.ico">
  
  <link rel="stylesheet" type="text/css" href="/./main.0cf68a.css">
  <style type="text/css">
  
    #container.show {
      background: linear-gradient(200deg,#a0cfe4,#e8c37e);
    }
  </style>
  

  

<meta name="generator" content="Hexo 5.4.0"></head>

<body>
  <div id="container" q-class="show:isCtnShow">
    <canvas id="anm-canvas" class="anm-canvas"></canvas>
    <div class="left-col" q-class="show:isShow">
      
<div class="overlay" style="background: #4d4d4d"></div>
<div class="intrude-less">
	<header id="header" class="inner">
		<a href="/" class="profilepic">
			<img src="/assets/head.jpg" class="js-avatar">
		</a>
		<hgroup>
		  <h1 class="header-author"><a href="/"></a></h1>
		</hgroup>
		

		<nav class="header-menu">
			<ul>
			
				<li><a href="/">主页</a></li>
	        
				<li><a href="/tags/%E9%9A%8F%E7%AC%94/">随笔</a></li>
	        
			</ul>
		</nav>
		<nav class="header-smart-menu">
    		
    			
    			<a q-on="click: openSlider(e, 'innerArchive')" href="javascript:void(0)">所有文章</a>
    			
            
    			
    			<a q-on="click: openSlider(e, 'friends')" href="javascript:void(0)">友链</a>
    			
            
    			
    			<a q-on="click: openSlider(e, 'aboutme')" href="javascript:void(0)">关于我</a>
    			
            
		</nav>
		<nav class="header-nav">
			<div class="social">
				
					<a class="zhihu" target="_blank" href="/assets/zhihu.jpg" title="zhihu"><i class="icon-zhihu"></i></a>
		        
					<a class="qq" target="_blank" href="/assets/qq.jpg" title="qq"><i class="icon-qq"></i></a>
		        
					<a class="csdn" target="_blank" href="/assets/CSDN.jpg" title="csdn"><i class="icon-csdn"></i></a>
		        
					<a class="weixin" target="_blank" href="/assets/gzh.png" title="weixin"><i class="icon-weixin"></i></a>
		        
					<a class="acfun" target="_blank" href="/assets/CSDN.jpg" title="acfun"><i class="icon-acfun"></i></a>
		        
			</div>
		</nav>
	</header>		
</div>

    </div>
    <div class="mid-col" q-class="show:isShow,hide:isShow|isFalse">
      
<nav id="mobile-nav">
  	<div class="overlay js-overlay" style="background: #4d4d4d"></div>
	<div class="btnctn js-mobile-btnctn">
  		<div class="slider-trigger list" q-on="click: openSlider(e)"><i class="icon icon-sort"></i></div>
	</div>
	<div class="intrude-less">
		<header id="header" class="inner">
			<div class="profilepic">
				<img src="/assets/head.jpg" class="js-avatar">
			</div>
			<hgroup>
			  <h1 class="header-author js-header-author"></h1>
			</hgroup>
			
			
			
				
			
				
			
			
			
			<nav class="header-nav">
				<div class="social">
					
						<a class="zhihu" target="_blank" href="/assets/zhihu.jpg" title="zhihu"><i class="icon-zhihu"></i></a>
			        
						<a class="qq" target="_blank" href="/assets/qq.jpg" title="qq"><i class="icon-qq"></i></a>
			        
						<a class="csdn" target="_blank" href="/assets/CSDN.jpg" title="csdn"><i class="icon-csdn"></i></a>
			        
						<a class="weixin" target="_blank" href="/assets/gzh.png" title="weixin"><i class="icon-weixin"></i></a>
			        
						<a class="acfun" target="_blank" href="/assets/CSDN.jpg" title="acfun"><i class="icon-acfun"></i></a>
			        
				</div>
			</nav>

			<nav class="header-menu js-header-menu">
				<ul style="width: 50%">
				
				
					<li style="width: 50%"><a href="/">主页</a></li>
		        
					<li style="width: 50%"><a href="/tags/%E9%9A%8F%E7%AC%94/">随笔</a></li>
		        
				</ul>
			</nav>
		</header>				
	</div>
	<div class="mobile-mask" style="display:none" q-show="isShow"></div>
</nav>

      <div id="wrapper" class="body-wrap">
        <div class="menu-l">
          <div class="canvas-wrap">
            <canvas data-colors="#eaeaea" data-sectionHeight="100" data-contentId="js-content" id="myCanvas1" class="anm-canvas"></canvas>
          </div>
          <div id="js-content" class="content-ll">
            <article id="post-E_vue2" class="article article-type-post " itemscope itemprop="blogPost">
  <div class="article-inner">
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      vue2
    </h1>
  

        
        <a href="/2021/08/30/E_vue2/" class="archive-article-date">
  	<time datetime="2021-08-29T16:00:00.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2021-08-30</time>
</a>
        
      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <blockquote>
<p>直接在代码中debugger，就可调试</p>
</blockquote>
 <span id="more"></span>

<p>22-29没有看</p>
<p>135完了！！完了@@坚持到了142 ，人… 已 。。。废！！！！！！</p>
<p>模范话，组件化，规范化，自动化</p>
<h2 id="第一章-前端工程化与webpack"><a href="#第一章-前端工程化与webpack" class="headerlink" title="第一章 前端工程化与webpack"></a>第一章 前端工程化与webpack</h2><blockquote>
<ul>
<li>理解什么是前端工程化</li>
<li>了解webpack的基本用法</li>
<li>不强制要求能手动配置webpack</li>
</ul>
</blockquote>
<h5 id="1-1-webpack的定义"><a href="#1-1-webpack的定义" class="headerlink" title="1-1 webpack的定义"></a>1-1 webpack的定义</h5><ol>
<li>概念 ： webpack是前端项目工程化的具体解决方案</li>
<li>主要功能 ： 提供了友好的<strong>前端模块化</strong>开发支持，以及代码<strong>压缩混淆、处理浏览器JavaScript的兼容性、性能优化</strong>等强大的功能</li>
<li>好处 ： 让程序员把工作的重心放到具体功能的实现上， 提高了开发效率和项目的可维护性<ul>
<li>目前Vue，React等前端项目，基本上都是基于webpack进行工程化开发的</li>
</ul>
</li>
</ol>
<h5 id="1-2-webpack的基本使用"><a href="#1-2-webpack的基本使用" class="headerlink" title="1-2 webpack的基本使用"></a>1-2 webpack的基本使用</h5><ol>
<li> 创建列表隔行变色项目</li>
</ol>
<ul>
<li>新建项目空白目录，并<strong>运行 npm init -y 命令</strong>，初始化包管理器配置文件<code>package.json</code></li>
<li>新建src 源代码 目录</li>
<li>新建src  -&gt; index.html 首页和是src -&gt; index.js 脚本文件</li>
<li>初始化首页基本的结构</li>
<li>运行<code>npm install jquery -S</code>命令，安装jQuery</li>
<li>通过ES6 模块化的方式导入jQuery， 实现列表隔行变色效果</li>
</ul>
<ol start="2">
<li><p>安装和配置webpack</p>
<ul>
<li>在项目中安装webpack<ul>
<li>在终端运行如下命令，安装webpack 相关的两个包： <code>npm install webpack@5.42.1 webpack-cli@4.7.2 -D</code></li>
<li>-S 是 –save 的简写</li>
<li>-D 是 –save–dev的简写 ： 只在开发阶段会用到的意思</li>
</ul>
</li>
</ul>
</li>
<li><p>在项目中配置 webpack</p>
<ul>
<li><p>(1)在根目录中，创建名为 <code>webpack.config.js</code>的webpack 配置文件， 并初始化如下的基本配置</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">module</span>.exports = &#123;</span><br><span class="line">    <span class="attr">mode</span>: <span class="string">&#x27;development&#x27;</span>   <span class="comment">//mode 用来指定构建模式，可选项 : development 和production</span></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></li>
<li><p>(2)在package.json 的scripts节点下， 新增 dev脚本 如下：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">&quot;scripts&quot;</span>: &#123;</span><br><span class="line">    <span class="string">&quot;dev&quot;</span>: <span class="string">&quot;webpack&quot;</span>	<span class="comment">//script 节点下的脚本，可以通过 `npm run `执行，例如： npm run dev</span></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></li>
<li><p>(3)在终端运行 <code>npm run dev</code>命令，启动webpack进行项目的打包构建</p>
<p><img src="https://i.loli.net/2021/08/17/F3CqG184MnKBVSN.png" alt="5"></p>
</li>
</ul>
</li>
</ol>
<ol start="4">
<li><p>了解mode可选值的应用场景</p>
<ul>
<li><p>webpack.config.js文件中</p>
</li>
<li><p>```js<br>//使用Node.js的导出语法，向外导出一个webpack 的配置对象<br>module.exports = {</p>
<pre><code>//代表webpack运行的模式，可选值有两个 development 和 production
// 使用production，打包时长变长，文件变小
//开发追求打包速度；使用development; 发布上线时要使用 production.因为上线追求的是体积小

mode: &#39;development&#39;
</code></pre>
<p>}</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">     </span><br><span class="line"></span><br><span class="line">##### 1-3  webpack的基本使用 -- 指定webpack的entry和output(自定义打包的入口和出口)</span><br><span class="line">1. `npm run dev`run 脚本的时候 会先读取配置文件`webpack.config.js`，根据配置运行`index.js`</span><br><span class="line">2. webpack 4.x 和 5.x的版本中，有如下 的默认约定</span><br><span class="line">   - 默认的打包入口文件为 `src -&gt; index.js`</span><br><span class="line">   - 默认的输出文件路径为`dist -&gt; main.js`</span><br><span class="line">   - 注意 ： 可以在`webpack.config.js`中修改打包的默认约定</span><br><span class="line">3. 在webpack.config.js 配置文件中</span><br><span class="line">   -  通过`entry节点`指定**打包的入口**</span><br><span class="line">   - 通过**output节点**指定**打包的出口**</span><br><span class="line">   -  示例 ： </span><br><span class="line">4. dist文件夹可以被删除，因为自动生成</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">##### 1-4 安装和配置插件</span><br><span class="line"></span><br><span class="line">1. 通过安装和配置第三方的插件，可以拓展webpack的能力，从而让webpack用起来更方便</span><br><span class="line"></span><br><span class="line">   - `webpack-dev-server ` </span><br><span class="line">     - 类似于node.js阶段用到的nodemon工具</span><br><span class="line">     - 每当修改了源代码，webpack会自动进行项目的打包和构建</span><br><span class="line">   - `html-webpack-plugin`</span><br><span class="line">     - webpack中的HTML插件（类似于一个模板引擎插件）</span><br><span class="line">     - 可以通过此插件自定制index.html 页面的内容</span><br><span class="line"></span><br><span class="line">2. 安装 `webpack-dev-server`</span><br><span class="line"></span><br><span class="line">   - 运行如下的命令 : `npm install webpack-server@3.11.2 -D`</span><br><span class="line"></span><br><span class="line">3. - 配置 package.json -&gt; script 中的 dev 命令:</span><br><span class="line">   - 再次运行`npm run dev`命令，重新进行项目的打包</span><br><span class="line">   - 在浏览器中访问`http://localhost:8080`地址， 查看自动打包效果（放在内存里面，没有放在物理磁盘上，删除dist文件之后，ctrl+s没有生成该文件）</span><br><span class="line"></span><br><span class="line">   </span><br><span class="line"></span><br><span class="line">4. 安装`html-webpack-plugin`插件</span><br><span class="line"></span><br><span class="line">   - 运行如下代码 ：`npm install html-webpack-plugin@5.3.2 -D`</span><br><span class="line"></span><br><span class="line">5. 配置`html-webpack-plugin`</span><br><span class="line"></span><br><span class="line">   - (1)导入HTML 插件， 得到插件的构造函数</span><br><span class="line">   </span><br><span class="line">     `const HtmlPlugin = require(&#x27;html-webpack-plugin&#x27;)`</span><br><span class="line">   </span><br><span class="line">   - (2)创建HTML 插件的实例对象</span><br><span class="line">   </span><br><span class="line">     ```js</span><br><span class="line">     const htmlPlugin = new HtmlPlugin(&#123;</span><br><span class="line">         template: &#x27;./src/index.html&#x27;,//指定原文件的存放路径</span><br><span class="line">     	filename : &#x27;./index.html&#x27;,	//指定生成的文件的存放路径</span><br><span class="line">     &#125;)</span><br><span class="line">     module.exports = &#123;</span><br><span class="line">     	mode: &#x27;development&#x27;,</span><br><span class="line">         plugins: [htmlPlugin],	//3. 通过 plugins 节点，使 htmlPlugin插件生效</span><br><span class="line">     &#125;</span><br></pre></td></tr></table></figure></li>
</ul>
</li>
</ol>
<h5 id="1-5-了解-html-webpack-plugin的特性-amp-了解devServer中常用的选项"><a href="#1-5-了解-html-webpack-plugin的特性-amp-了解devServer中常用的选项" class="headerlink" title="1-5 了解 html-webpack-plugin的特性 &amp; 了解devServer中常用的选项"></a>1-5 了解 html-webpack-plugin的特性 &amp; 了解<code>devServer</code>中常用的选项</h5><ol>
<li><p>devServer节点 : </p>
<ul>
<li><p>在webpack.config.js配置文件中， 可以通过 <strong>devServer</strong> 节点对webpack-dev-server 插件进行更多的配置</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">devServer : &#123;</span><br><span class="line">    <span class="attr">open</span>: <span class="literal">true</span>,	<span class="comment">//初次打包完成后， 自动打开浏览器</span></span><br><span class="line">    <span class="attr">host</span> : <span class="string">&#x27;127.0.0.1&#x27;</span>，	<span class="comment">// 实时打包所使用的主机地址</span></span><br><span class="line">    <span class="attr">port</span>: <span class="number">80</span>,	<span class="comment">// 实时打包所使用的端口号</span></span><br><span class="line">&#125; </span><br></pre></td></tr></table></figure></li>
<li><p>注意： 凡是修改了webpack.config.js配置文件， 或修改了package.json 配置文件， <strong>必须重启实时打包的服务器</strong>，否则最新的配置文件无法生效！</p>
</li>
</ul>
</li>
</ol>
<h5 id="1-6-webpack中的loader"><a href="#1-6-webpack中的loader" class="headerlink" title="1-6 webpack中的loader"></a>1-6 webpack中的loader</h5><ol>
<li><p>loader的调用过程</p>
<ul>
<li><img src="https://i.loli.net/2021/08/17/FTeRqfXl3vw658P.png" alt="6"></li>
</ul>
</li>
<li><p>loader概述:</p>
<ul>
<li>在实际开发过程中， webpack默认只能打包处理.js后缀名结尾的模块。</li>
<li>其他非.js后缀名结尾的模块，webpack 默认处理不了，<strong>需要调用loader加载器才可以正常打包</strong>，否则会报错</li>
</ul>
</li>
<li><p>loader 加载器的作用：<strong>协助webpack</strong>打包处理特定的文件模块</p>
<ul>
<li><p>css-loader 可以打包处理.css相关的文件</p>
</li>
<li><p>less-loader 可以处理 .less相关的文件</p>
</li>
<li><p>babel-loader 可以打包处理webpack 无法处理的高级JS语法</p>
</li>
</ul>
</li>
<li><p>- </p>
</li>
</ol>
<h5 id="1-7-打包处理css以及less文件超严重问题"><a href="#1-7-打包处理css以及less文件超严重问题" class="headerlink" title="1-7 打包处理css以及less文件超严重问题"></a>1-7 打包处理css以及less文件<font color=red>超严重问题</font></h5><ol>
<li><p>打包处理css文件</p>
<ul>
<li><p>运行<code>npm i style-loader@3.0.0 css-loader@5.2.6 -D</code>命令，安装处理css文件的loader</p>
</li>
<li><p>在webpack.config.js的module -&gt; rules 数组中，添加loader 规则：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">module</span>: &#123;	<span class="comment">//所有第三方文件模块的匹配规则</span></span><br><span class="line">    <span class="attr">rules</span>:[	<span class="comment">//文件后缀名的匹配规则</span></span><br><span class="line">        &#123; <span class="attr">test</span>: <span class="regexp">/\.css$/</span>, use: [<span class="string">&#x27;style-loader&#x27;</span>,<span class="string">&#x27;css-loader&#x27;</span>]&#125;,       </span><br><span class="line">    ] </span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<ul>
<li>其中，test表示匹配的文件类型，use表示对应要调用的loader</li>
<li>注意：（1）use数组中指定的loader顺序是固定的 （2）多个loader的调用顺序是 ： 从后往前调用</li>
</ul>
</li>
</ul>
</li>
<li><ul>
<li><p>（1）webpack默认只能打包处理.js结尾的文件，处理不了其他后缀的文件</p>
</li>
<li><p>（2）由于代码中包含了index.css这个文件，因此webpack默认处理不了</p>
</li>
<li><p>（3）当webpack发现某个文件处理不了的时候，会查找webpack.config.js 这个配置文件，看module.rules 数组中，是否配置了对应的loader加载器</p>
</li>
<li><p>（4）webpack把index.css这个文件，先转交给最后一个loader进行处理（先转交给css-loader）</p>
</li>
<li><p>(5) 当css-loader处理完毕之后，会把处理的结果，转交给下一个loader（转交给style-loader）</p>
</li>
<li><p>(6)当style-loader 处理完毕之后，发现没有下一个loader了，于是就把处理的结果，转交给webpack</p>
</li>
<li><p>（7）webpack把style-loader处理的结果，合并到/dist/bundle.js 中，最终生成打包好的文件</p>
</li>
</ul>
</li>
</ol>
<ol start="2">
<li><p>运行<code>npm i less-loader@10.0.1 less@4.1.1 -D</code>命令</p>
</li>
<li><p>在文本webpack.config.js 的<code>module -&gt; rules</code>数组中，添加loader 规则如下：</p>
</li>
</ol>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">module</span>: &#123;	<span class="comment">//所有第三方文件模块的匹配规则</span></span><br><span class="line">    <span class="attr">rules</span>:[	<span class="comment">//文件后缀名的匹配规则</span></span><br><span class="line">        &#123; <span class="attr">test</span>: <span class="regexp">/\.less$/</span>, use: [<span class="string">&#x27;style-loader&#x27;</span>,<span class="string">&#x27;css-loader&#x27;</span>,<span class="string">&#x27;less-loader&#x27;</span>]&#125;,       </span><br><span class="line">    ] </span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>





<h5 id="1-8-base64的图片优缺点"><a href="#1-8-base64的图片优缺点" class="headerlink" title="1-8 base64的图片优缺点"></a>1-8 base64的图片优缺点</h5><ol>
<li></li>
</ol>
<h5 id="1-9-演示图片loader加载的问题【依旧是bigbug】"><a href="#1-9-演示图片loader加载的问题【依旧是bigbug】" class="headerlink" title="1-9 演示图片loader加载的问题【依旧是bigbug】"></a>1-9 演示图片loader加载的问题【依旧是bigbug】</h5><ol>
<li><p>需求 ： 把 /src/images/logo.jpg 设置给 src 属性</p>
</li>
<li><p>打包处理样式表中与url路径相关 的文件</p>
<ul>
<li><p>运行 <code>npm i url-loader@4.1.1 file-loader@6.2.0 -D</code>命令</p>
</li>
<li><p>在webpack.config.js的 module  -&gt; rules 数组中， 添加loader 规则 :</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">module</span> : &#123;	<span class="comment">//所有第三方模块的匹配规则</span></span><br><span class="line">    <span class="attr">rules</span>: [	<span class="comment">// 文件后缀名 的匹配规则</span></span><br><span class="line">        &#123;<span class="attr">test</span>: <span class="regexp">/\.jpg|png|gif$ /</span>, use: <span class="string">&#x27;url-loader?limit-22229&#x27;</span>&#125;,</span><br><span class="line">        </span><br><span class="line">    ]</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<ul>
<li>其中 ? 之后的是loader 的参数项</li>
<li>limit用来指定图片的大小，单位是字节（byte）</li>
<li>只有 &lt;= limit 大小的图片， 才会被转为 base64 格式的图片</li>
</ul>
</li>
</ul>
</li>
</ol>
<h2 id="第二章-了解vue是什么"><a href="#第二章-了解vue是什么" class="headerlink" title="第二章 了解vue是什么"></a>第二章 了解vue是什么</h2><h5 id="2-1-Vue简介"><a href="#2-1-Vue简介" class="headerlink" title="2-1 Vue简介"></a>2-1 Vue简介</h5><ol>
<li><p>概念 ： 一套<strong>用于构建用户界面的前端框架</strong></p>
<ul>
<li>构建用户界面 ： 用vue往html页面中填充数据</li>
<li>框架<ul>
<li>框架是一套线现成的解决方案，程序员只能遵守框架的规范，去编写自己的业务功能</li>
<li>学习vue，就是在学习vue框架中规定的写法</li>
<li>vue的指令、组件（是对UI结构的复用）、路由、Vuex、xue组件库</li>
<li>只有把上面罗列的内容掌握，才有开发vue项目的能力</li>
</ul>
</li>
</ul>
</li>
<li><p>vue框架的特性：</p>
<ul>
<li>数据驱动视图（<strong>单向的数据绑定</strong>），数据的变化会驱动视图自动更新</li>
</ul>
<p> <img src="https://i.loli.net/2021/08/17/W8E2R65eqBQFsPo.png" alt="7"></p>
<ul>
<li><p>vue监听数据的变化，自动操作dom元素</p>
</li>
<li><p>双向数据绑定</p>
<ul>
<li>在网页中。form表单负责采集数据，ajax负责提交数据</li>
<li>js数据的变化，会被自动渲染到页面上</li>
<li>页面上表单采集的数据发生变化时，会被vue自动获取到，并更新到js数据中</li>
</ul>
</li>
</ul>
</li>
</ol>
<h5 id="2-2-MVVM"><a href="#2-2-MVVM" class="headerlink" title="2-2 MVVM"></a>2-2 MVVM</h5><ol>
<li><p>MVVM是vue实现<strong>数据驱动视图</strong>和<strong>双向数据绑定</strong>的核心原理</p>
<ul>
<li><p>MVVM指的是Model，View和 ViewModel</p>
</li>
<li><p>MVVM将HTML页面拆分成三部分</p>
<p><img src="D:/Front-end/md%E7%AC%94%E8%AE%B0/vue/vue/pc/8.png" alt="8"></p>
</li>
</ul>
</li>
<li><p>ViewModel 作为 MVVM的核心， 是它把当前页面的数据源（Model）和页面的结构（View）连接在一起</p>
<p>​    <img src="https://i.loli.net/2021/08/18/rBGLhO6x91Z8w5g.png" alt="8"></p>
<ul>
<li>当数据源发生变化时，会被ViewModel监听到，VM会根据最新的数据源<strong>自动更新</strong>页面的结构</li>
<li>当<strong>表单元素的值发生变化时，也会被VM监听到</strong>，VM会把变化后最新的值<strong>自动同步到</strong>Model数据源中</li>
</ul>
</li>
</ol>
<h5 id="2-3-vue版本"><a href="#2-3-vue版本" class="headerlink" title="2-3 vue版本"></a>2-3 vue版本</h5><ol>
<li>vue有三大版本<ul>
<li>2.x版本的vue是目前企业级项目开发中的主流版本</li>
<li>3.x版本的vue于2021-09-19 发布，生态还未完善，尚未在企业级项目开发中普及和推广</li>
<li>1.x 版本的vue几乎被淘汰</li>
</ul>
</li>
<li>总结 ：<ul>
<li>3.x版本的 vue 是未来企业级项目开发的趋势</li>
<li>2.x版本的vue在未来会被逐渐淘汰</li>
</ul>
</li>
</ol>
<h5 id="2-4-vue的基本使用—-内容渲染指令"><a href="#2-4-vue的基本使用—-内容渲染指令" class="headerlink" title="2-4 vue的基本使用— 内容渲染指令"></a>2-4 vue的基本使用— 内容渲染指令</h5><ol>
<li><p>基本使用步骤</p>
<ul>
<li><p>导入vue.js 的script脚本文件</p>
</li>
<li><p>在页面中声明一个将要被Vue所控制的DOM区域</p>
</li>
<li><p>创建vm实例对象（vue实例对象）</p>
<p><img src="https://i.loli.net/2021/08/18/LaWrdJhM7xsKgXb.png" alt="9"></p>
</li>
</ul>
</li>
<li><p>fireFox浏览器在线安装vue-devtools : <a target="_blank" rel="noopener" href="https://addons.mozilla.org/zh-CN/firefox/addon/vue-js-devtools/">https://addons.mozilla.org/zh-CN/firefox/addon/vue-js-devtools/</a></p>
</li>
<li><p>vue的指令与过滤器</p>
<ul>
<li>指令（Directives）是vue为开发者提供的<strong>模板语法</strong>，用来辅助<strong>开发者渲染页面的基本结构</strong></li>
<li>vue中的指令按照不同的用途分为六大类：<ul>
<li><strong>内容渲染</strong>指令</li>
<li><strong>属性绑定</strong>指令</li>
<li><strong>事件绑定</strong>指令</li>
<li><strong>双向绑定</strong>指令</li>
<li><strong>条件渲染</strong>指令</li>
<li><strong>列表渲染</strong>指令</li>
</ul>
</li>
<li>注意 ：指令是vue开发中最基础、最常用、最简单的</li>
</ul>
</li>
<li><p><strong>内容渲染</strong>指令 ：</p>
<ul>
<li><p>用来辅助开发者渲染DOM元素的文本内容</p>
<ul>
<li><p>v-text 指令 ：会<strong>覆盖元素内默认的值</strong>！！</p>
<ul>
<li>```js<body>
    <!-- 希望Vue能够控制下面的这个div，帮我们把数据填充到 div 内部 -->
    <div class="app">
        <p v-text="username"></p>
        <p v-text="gender">性别</p>
    </div>
    <!-- 导入Vue的库文件， 在window全局就有了vue 这个构造函数、 -->
    <!-- 开发环境版本，包含了有帮助的命令行警告 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <!-- 2. 创建Vue的实例对象 -->
    <script>
        //创建 Vue 的实例对象
        const vm = new Vue({
            //el 属性是固定的写法, 表示当前 nm 实例要控制页面上的哪个区域, 接收的值是一个选择器
            el: '.app',
            data: {
                username: 'zahngsan',
                gender: 'da',
            }
        })
    </script>

</body>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">         </span><br><span class="line"></span><br><span class="line">     - &#123;&#123;&#125;&#125;语法 ： **插值表达式**（Mustache语法）</span><br><span class="line"></span><br><span class="line">       - **只能用在内容节点，不能用在元素的属性节点**</span><br><span class="line"></span><br><span class="line">     - v-html ：</span><br><span class="line"></span><br><span class="line">       - 前面两个标签无法将html元素渲染到页面上，只能是普通的字符串</span><br><span class="line">       - 指令的作用 ： 可以把带有标签的字符串，渲染成真正的HTML内容</span><br><span class="line"></span><br><span class="line">5. 属性绑定指令 ：</span><br><span class="line"></span><br><span class="line">   &gt; 注意 ： **插值表达式**（Mustache语法）**只能用在内容节点，不能用在元素的属性节点**</span><br><span class="line"></span><br><span class="line">   - 需要为元素的***属性**动态绑定属性值，则需要用到**v-bind 属性**绑定指令,&lt;font color=red&gt; 简写是英文的 `:`&lt;/font&gt;</span><br><span class="line"></span><br><span class="line">6. 事件绑定指令 ：</span><br><span class="line"></span><br><span class="line">   - vue提供了 v-on 事件绑定 指令，用来辅助程序员为 DOM元素绑定事件监听,&lt;font color=red&gt; 简写是@,简写：`add : function()&#123;&#125;, 写成 add()&#123;&#125;`&lt;/font&gt;</span><br><span class="line">     - 注意： 原生DOM对象有`onclik` ,`oninput`,`onkeyup`等原生事件，替换为vue的事件绑定形式之后，分别为： `v-on:click`,`v-on:input`,`v-on:keyup`</span><br><span class="line">     </span><br><span class="line">   - 事件绑定： $event</span><br><span class="line">   </span><br><span class="line">     - `&lt;button @click=add($event, 1)&gt;+N&lt;/button&gt;`</span><br><span class="line">   </span><br><span class="line">   - 事件绑定----事件修饰符 : 在事件处理函数中调用`event.preventDefault()`或`event.stopPropagation()`是非常常见的需求</span><br><span class="line">   </span><br><span class="line">     - 事件修饰符的提出，辅助程序员对事件的触发进行控制</span><br><span class="line">     - 常见的5个事件修饰符如下 ：</span><br><span class="line">   </span><br><span class="line">     | 事件修饰符 | 说明                                                |</span><br><span class="line">     | ---------- | --------------------------------------------------- |</span><br><span class="line">     | .prevent   | 阻止默认行为（例如：阻止a链接的跳转）               |</span><br><span class="line">     | .stop      | 阻止事件冒泡                                        |</span><br><span class="line">     | .capture   | 以捕获模式触发当前的事件处理函数                    |</span><br><span class="line">     | .once      | 绑定的事件只触发一次                                |</span><br><span class="line">     | .self      | 只有在event.target 是当前元素自身时触发事件处理函数 |</span><br><span class="line">   </span><br><span class="line">     </span><br><span class="line">   </span><br><span class="line">   - 事件绑定 --- 按键修饰符</span><br><span class="line">   </span><br><span class="line">     - 在监听**键盘事件**时，我们经常需要**判断的详细的按键**。此时，可以为**键盘相关的事件**添加**按钮修饰符**</span><br><span class="line">   </span><br><span class="line">     ```js</span><br><span class="line">     &lt;body&gt;</span><br><span class="line">         &lt;div class=&quot;app&quot;&gt;</span><br><span class="line">             &lt;input type=&quot;text&quot; @keyup.esc=&quot;clearInput&quot; @keyup.enter=&quot;commitAjax&quot;&gt;</span><br><span class="line">         &lt;/div&gt;</span><br><span class="line">         &lt;script src=&quot;https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js&quot;&gt;&lt;/script&gt;</span><br><span class="line">         &lt;script&gt;</span><br><span class="line">             // 创建 Vue 的实例对象</span><br><span class="line">             const vm = new Vue(&#123;</span><br><span class="line">                 el: &#x27;.app&#x27;,</span><br><span class="line">                 data: &#123;&#125;,</span><br><span class="line">                 methods: &#123;</span><br><span class="line">                     clearInput(e) &#123;</span><br><span class="line">                         console.log(&#x27;触发了&#x27;);</span><br><span class="line">                         e.target.value = &#x27;&#x27;;</span><br><span class="line">                     &#125;,</span><br><span class="line">                     commitAjax() &#123;</span><br><span class="line">                         console.log(&#x27;我触发了&#x27;);</span><br><span class="line">                     &#125;</span><br><span class="line">                 &#125;</span><br><span class="line">             &#125;)</span><br><span class="line">         &lt;/script&gt;</span><br><span class="line">     &lt;/body&gt;</span><br></pre></td></tr></table></figure></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li><p>双向绑定指令</p>
<ul>
<li><p>vue 提供了 <code>v-model 双向数据绑定</code>指令，用来辅助开发者<strong>不操作DOM</strong>的前提下， <strong>快速获取表单的数据</strong></p>
</li>
<li><p>适用于(输入进来的均为字符串)：</p>
<ul>
<li>input 输入框、<ul>
<li>type = “radio”</li>
<li>type=”checkbox”</li>
<li>type=”xxx”</li>
</ul>
</li>
<li><h2 id="textarea"><a href="#textarea" class="headerlink" title="textarea"></a>textarea</h2></li>
<li>select</li>
</ul>
</li>
<li><p>为了方便对用户输入的内容进行处理， vue为v-model 指令提供了3个修饰符</p>
<table>
<thead>
<tr>
<th>修饰符</th>
<th>作用</th>
<th>示例</th>
</tr>
</thead>
<tbody><tr>
<td>.number</td>
<td>自动将用户的输入值转为数值类型</td>
<td><code>&lt;input v-model.number=&quot;age&quot;&gt;</code></td>
</tr>
<tr>
<td>.trim</td>
<td>自动过滤用户输入的首尾空白字符</td>
<td><code>&lt;input v-model.trim=&quot;msg&quot;/&gt;</code></td>
</tr>
<tr>
<td>.lzy</td>
<td>在”change“时而非”input“时更新</td>
<td><code>&lt;input v-model.lazy=&quot;msg&quot;/&gt;</code></td>
</tr>
</tbody></table>
</li>
</ul>
</li>
<li><p>条件渲染指令 ： 辅助开发者<strong>按需控制DOM的显示和隐藏</strong></p>
<ul>
<li><p>v-show原理： 动态为元素添加或移除<code>display : none</code>样式，来实现元素的显示与隐藏</p>
<ul>
<li>频繁切换元素的显示状态，用v-show性能更好</li>
</ul>
</li>
<li><p><strong>v-if</strong>的原理 : 每次动态创建或移除元素，实现元素的显示和隐藏</p>
<ul>
<li>如果刚进入页面，某些元素默认不需要被展示， 而且后期这个元素很可能也不需要被展示出来，此时v-if性能更好</li>
<li>v-if配套指令<img src="https://i.loli.net/2021/08/18/Q79pk2oFeTRBDVz.png" alt="10"></li>
</ul>
</li>
</ul>
</li>
<li><p> 列表渲染指令</p>
</li>
</ol>
<ul>
<li><p>vue提供了v-for列表渲染指令， 用来辅助开发者基于一个数组来渲染一个列表结构。</p>
<ul>
<li>v-for 指令需要使用 item in items 形式的特殊语法</li>
<li>items 是待循环的数组</li>
<li>item 是 被数组循环的每一项</li>
</ul>
</li>
<li><p>v-for 指令还支持一个可选的第二个参数， 即<strong>当前项的索引</strong>。语法格式为 (item, index) in items</p>
<ul>
<li>v-for 指令中的 item项和 index 索引都是形参， 可以根据需要进行 重命名。 例如 ：<code>(user, i) in userlist</code></li>
<li></li>
</ul>
</li>
</ul>
<h5 id="2-5-el属性的使用注意点以及使用javscript-表达式"><a href="#2-5-el属性的使用注意点以及使用javscript-表达式" class="headerlink" title="2-5 el属性的使用注意点以及使用javscript 表达式"></a>2-5 el属性的使用注意点以及使用javscript 表达式</h5><ol>
<li><p>如果el只挂载一个p标签，vue只控制第一个p标签</p>
</li>
<li><p>在vue提供的模板渲染语法中， 除了支持<strong>绑定简单的数据值之外</strong>，还支持Javascript表达式的运算</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">&#123;&#123; number + <span class="number">1</span> &#125;&#125;</span><br><span class="line">&#123;&#123; ok ? <span class="string">&#x27;YES&#x27;</span> : <span class="string">&#x27;NO&#x27;</span>&#125;&#125;</span><br><span class="line">&#123;&#123; message.split(<span class="string">&#x27;&#x27;</span>).reverse().join(<span class="string">&#x27;&#x27;</span>) &#125;&#125;</span><br><span class="line"></span><br><span class="line">&lt;div v-bind:id=<span class="string">&quot;&#x27;list-&#x27; +id&quot;</span>&gt;&lt;/div&gt;</span><br></pre></td></tr></table></figure></li>
</ol>
<h2 id="第三章-过滤器-amp-侦听器-amp-计算属性"><a href="#第三章-过滤器-amp-侦听器-amp-计算属性" class="headerlink" title="第三章 过滤器 &amp;侦听器 &amp; 计算属性"></a>第三章 过滤器 &amp;侦听器 &amp; 计算属性</h2><h5 id="3-1-过滤器的基本用法"><a href="#3-1-过滤器的基本用法" class="headerlink" title="3-1 过滤器的基本用法"></a>3-1 过滤器的基本用法</h5><ol>
<li><p>过滤器（Filters）是vue为开发者提供的功能， 常用于<strong>文本的格式化</strong>，用在两个地方：</p>
<ul>
<li>插值表达式</li>
<li>v-bind 属性绑定</li>
</ul>
</li>
<li><p>过滤器应该被添加在JavaScript 表达式的<strong>尾部</strong>，由 “<strong>管道符</strong>”进行调用，示例代码 ：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">&lt;!-- 在双花括号中通过”管道符“调用 capitalize 过滤器，对message 的值进行格式化 --!&gt;</span><br><span class="line"><span class="xml"><span class="tag">&lt;<span class="name">p</span>&gt;</span>&#123;&#123; message | capitalize &#125;&#125;<span class="tag">&lt;/<span class="name">p</span>&gt;</span></span></span><br><span class="line"></span><br><span class="line">&lt;!-- 在v-bind 中通过”管道符“调用 formatId 过滤器，对 rawId 的值进行格式化 --!&gt;</span><br><span class="line">    <span class="xml"><span class="tag">&lt;<span class="name">div</span> <span class="attr">v-bind:id</span>=<span class="string">&quot;rawId | formatId&quot;</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span></span></span><br><span class="line"></span><br></pre></td></tr></table></figure></li>
</ol>
<h5 id="3-2-私有过滤器和全局过滤器"><a href="#3-2-私有过滤器和全局过滤器" class="headerlink" title="3-2 私有过滤器和全局过滤器"></a>3-2 私有过滤器和全局过滤器</h5><ol>
<li><p>上面的是私有过滤器</p>
<ul>
<li>定义在Vue实例里面的过滤器是私有过滤器</li>
</ul>
</li>
<li><p>使用Vue.filter定义全局过滤器</p>
<ul>
<li><p>在filter 节点下定义的过滤器，称为”私有过滤器“，因为它只能在当前vm实例所控制的el区域内使用</p>
</li>
<li><p>如果希望在多个vue实例之间共享过滤器，则可以按照如下的格式定义全局过滤器</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//全局过滤器 - 独立于每个vm实例之外</span></span><br><span class="line"><span class="comment">// Vue.filter() 方法接收两个参数：</span></span><br><span class="line">	- 第一个参数： 是全局过滤器的”名字“</span><br><span class="line">    - 第二个参数： 是全局过滤器的”处理函数“</span><br><span class="line">    Vue.filter(<span class="string">&#x27;capitalize&#x27;</span>,<span class="function">(<span class="params">str</span>) =&gt;</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> str.charAt(<span class="number">0</span>).toUpperCase() +str.slice(<span class="number">1</span>) + <span class="string">&#x27;~~&#x27;</span></span><br><span class="line">    &#125;)</span><br></pre></td></tr></table></figure></li>
<li><p>如果全局过滤器和私有过滤器名字一致，此时按照就近原则，调用的是“私有过滤器</p>
</li>
</ul>
</li>
</ol>
<h5 id="1-3-过滤器的其他用法"><a href="#1-3-过滤器的其他用法" class="headerlink" title="1-3 过滤器的其他用法"></a>1-3 过滤器的其他用法</h5><ol>
<li><p>过滤器可以串联进行调用，得到的结果是最后一个过滤器返回的值,用竖线连续调用多个过滤器</p>
<p><code>&lt;td&gt;&#123;&#123; item.time | dateFormat |xxx|yyy|zzz&#125;&#125;&lt;/td&gt;</code></p>
</li>
<li><p>过滤器的本质是JavaScript 函数，因此可以接收函数</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">&lt;!-- arg1 和 arg2 是传递给 fileterA的参数 --&gt;</span><br><span class="line">        <span class="xml"><span class="tag">&lt;<span class="name">p</span>&gt;</span>&#123;&#123; message | filterA(arg1, arg2)&#125;&#125;<span class="tag">&lt;/<span class="name">p</span>&gt;</span></span></span><br><span class="line">        </span><br><span class="line">        <span class="comment">// 过滤器处理函数的形参列表中</span></span><br><span class="line">        <span class="comment">// 第一个参数 ： 用软都是“管道符”前面待处理的值</span></span><br><span class="line">        <span class="comment">// 从第二个参数开始， 才是调用过滤器时传递过来的 arg1 和arg2 参数</span></span><br><span class="line">        Vue.filter(<span class="string">&#x27;filterA&#x27;</span>,<span class="function">(<span class="params">msg, arg1, arg2</span>) =&gt;</span> &#123;</span><br><span class="line">            <span class="comment">//过滤器的代码逻辑...</span></span><br><span class="line">        &#125;)</span><br></pre></td></tr></table></figure></li>
</ol>
<h5 id="3-4-了解侦听器基本的语法格式"><a href="#3-4-了解侦听器基本的语法格式" class="headerlink" title="3-4 了解侦听器基本的语法格式"></a>3-4 了解侦听器基本的语法格式</h5><ol>
<li><p>监视数据变化</p>
</li>
<li><p>watch侦听器 ：</p>
<ul>
<li><p>watch侦听器允许开发者监听数据的变化，从而<strong>针对数据的变化做特定的操作</strong></p>
</li>
<li><p>```js<br>const vm = new Vue({</p>
<pre><code>el: &#39;#app&#39;,
data: &#123; username: &#39;&#39;&#125;,
watch: &#123;
    //监听 username 值得变化
    // newVal 是“变化后得新值”，oldVal 是“变化之前得旧值”
    username(newVal, oldVal)&#123;
        log(newVal, oldVal)
    &#125;
&#125;
</code></pre>
<p>})</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">3. 侦听器的格式</span><br><span class="line"></span><br><span class="line">   - 方法格式的侦听器</span><br><span class="line"></span><br><span class="line">     - 缺点 1： 无法在刚进入页面的时候，自动触发！！！</span><br><span class="line">     - 缺点2 ：如果侦听的是一个对象， 如果对象中的属性发生了变化，不会触发侦听器！！！</span><br><span class="line"></span><br><span class="line">   - 对象格式的侦听器</span><br><span class="line"></span><br><span class="line">     - 好处： 可以通过**immediate**选项，让侦听器自动触发！</span><br><span class="line"></span><br><span class="line">       </span><br><span class="line"></span><br><span class="line">       ```js</span><br><span class="line">       watch: &#123;</span><br><span class="line">                       username: &#123;</span><br><span class="line">                           //侦听器的处理函数</span><br><span class="line">                           handler(newVal, oldVal) &#123;</span><br><span class="line">                               console.log(1);</span><br><span class="line">                           &#125;,</span><br><span class="line">                           // 选项的默认值是false</span><br><span class="line">                           // immediate 的作用 ： 控制侦听器是否自动触发一次！</span><br><span class="line">                           immediate: true</span><br><span class="line">                       &#125;</span><br><span class="line">                   &#125;</span><br></pre></td></tr></table></figure>

<ul>
<li><p>好处2 ： 可以通过deep选项， 让侦听器深度监听对象中每个属性的变化</p>
<ul>
<li>（如果watch侦听的是一个对象， 如果对象中的属性值发生变化，则无法被监听到， 此时需要使用deep选项）</li>
<li>如果只是想监听对象中单个属性的变化， 则可以按照如下的方式定义watch 侦听器</li>
</ul>
</li>
</ul>
</li>
</ul>
<ol start="4">
<li>deep选项</li>
</ol>
</li>
</ol>
<h5 id="3-5-计算属性-amp-axios"><a href="#3-5-计算属性-amp-axios" class="headerlink" title="3-5 计算属性 &amp; axios"></a>3-5 计算属性 &amp; axios</h5><ol>
<li><p>计算属性就是通过一系列运算之后，得到的一个属性值</p>
<ul>
<li>这个动态计算出来的属性值 可以被模板结构或 methods 方法使用</li>
</ul>
</li>
<li><p>使用axios（艾克C奥斯）发起基本的GET请求</p>
<blockquote>
<p>axios 是一个专注于 网络（数据）请求的库！</p>
</blockquote>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">axios(&#123;</span><br><span class="line">            <span class="comment">//请求方式</span></span><br><span class="line">            <span class="attr">method</span>: <span class="string">&#x27;GET&#x27;</span>,</span><br><span class="line">            <span class="comment">// 请求的地址</span></span><br><span class="line">            <span class="attr">url</span>: <span class="string">&#x27;http://www.liulongbin.top:3006/api/getbooks&#x27;</span>,</span><br><span class="line">            <span class="comment">// URL 中查询参数, get传参</span></span><br><span class="line">            <span class="attr">params</span>: &#123;</span><br><span class="line">                <span class="attr">id</span>: <span class="number">1</span></span><br><span class="line">            &#125;,</span><br><span class="line">        &#125;).then(<span class="function"><span class="keyword">function</span>(<span class="params">result</span>) </span>&#123;</span><br><span class="line">            <span class="built_in">console</span>.log(result);</span><br><span class="line">        &#125;)</span><br></pre></td></tr></table></figure>

<img src="https://i.loli.net/2021/08/20/ZGNYQlMoIS3qE2y.png" alt="11" style="zoom:33%;" /></li>
<li><p>发起post请求（结合 async 和 await 调用axios）</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">    &lt;button id=<span class="string">&quot;postInfo&quot;</span>&gt;发起POST请求&lt;/button&gt;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="xml"><span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="javascript"></span></span></span><br><span class="line"><span class="javascript"><span class="xml">        <span class="built_in">document</span>.querySelector(<span class="string">&#x27;#postInfo&#x27;</span>).addEventListener(<span class="string">&#x27;click&#x27;</span>, <span class="keyword">async</span> <span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">            <span class="comment">// 如果调用某个方法的返回值是Promise实例，则前面可以添加 await</span></span></span></span><br><span class="line"><span class="javascript"><span class="xml">            <span class="comment">// await 只能在被 async“修饰” 的方法中</span></span></span></span><br><span class="line"><span class="javascript"><span class="xml">            <span class="keyword">const</span> result = <span class="keyword">await</span> axios(&#123;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">                    <span class="attr">method</span>: <span class="string">&#x27;POST&#x27;</span>,</span></span></span><br><span class="line"><span class="javascript"><span class="xml">                    <span class="attr">url</span>: <span class="string">&#x27;http://www.liulngbin.top:3006/api/post&#x27;</span>,</span></span></span><br><span class="line"><span class="javascript"><span class="xml">                    <span class="attr">data</span>: &#123;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">                        <span class="attr">name</span>: <span class="string">&#x27;zs&#x27;</span>,</span></span></span><br><span class="line"><span class="javascript"><span class="xml">                        <span class="attr">age</span>: <span class="number">20</span></span></span></span><br><span class="line"><span class="javascript"><span class="xml">                    &#125;</span></span></span><br><span class="line"><span class="javascript"><span class="xml"></span></span></span><br><span class="line"><span class="javascript"><span class="xml">                &#125;)</span></span></span><br><span class="line"><span class="javascript"><span class="xml">                <span class="comment">// .then变化await</span></span></span></span><br><span class="line"><span class="javascript"><span class="xml">                <span class="comment">/*  .then(function(result) &#123;</span></span></span></span><br><span class="line"><span class="comment"><span class="javascript"><span class="xml">                     console.log(result);</span></span></span></span><br><span class="line"><span class="comment"><span class="javascript"><span class="xml">                 &#125;) */</span></span></span></span><br><span class="line"><span class="javascript"><span class="xml">            <span class="built_in">console</span>.log(result);</span></span></span><br><span class="line"><span class="javascript"><span class="xml">        &#125;)</span></span></span><br><span class="line"><span class="javascript"><span class="xml">    </span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span></span><br></pre></td></tr></table></figure></li>
<li><p>```js<br> document.querySelector(‘#btnGet’).addEventListener(‘click’, async function() {</p>
<pre><code>        // 解构赋值的时候，使用 ： 进行重命名
        // 1. 调用axios 之后， 使用async/await 进行简化
        // 2. 使用解构赋值， 从axios 封装的大对象中， 把data属性结构出来
        // 3. 把解构出来的data属性，使用 冒号 进行重命名， 一般命名为&#123; data: res&#125;
        const &#123;
            data: res
        &#125; = await axios(&#123;
            method: &#39;GET&#39;,
            url: &#39;http://www.liulongbin.top:3006/api/getbooks&#39;,
        &#125;)
        console.log(res.data);
    &#125;)
</code></pre>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">5. ```js</span><br><span class="line">   // $.ajax()   $.get()   $.post()</span><br><span class="line">   // axios()   axios.get()     axios.post()      axios.delete()         axios.put()</span><br></pre></td></tr></table></figure></li>
</ol>
<h5 id="3-6-基于axios-get和axios-post发起请求"><a href="#3-6-基于axios-get和axios-post发起请求" class="headerlink" title="3-6 基于axios.get和axios.post发起请求"></a>3-6 基于axios.get和axios.post发起请求</h5><ol>
<li><p>```js<br> <button id="btnGET">GET请求</button></p>
<pre><code>&lt;button id=&quot;btnPost&quot;&gt;POST请求&lt;/button&gt;
&lt;script src=&quot;../day3/lib/axios.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
    document.querySelector(&#39;#btnGET&#39;).addEventListener(&#39;click&#39;, async function() &#123;
        /* axios.get(&#39;url地址&#39;,&#123;
            //GET 参数
            params :&#123;&#125;
        &#125;) */

        const &#123;
            data: res
        &#125; = await axios.get(&#39;http://www.liulongbin.top:3006/api/getbooks&#39;, &#123;
            params: &#123;
                id: 1
            &#125;
        &#125;)
        console.log(res);
    &#125;)

    document.querySelector(&#39;#btnPost&#39;).addEventListener(&#39;click&#39;, function() &#123;
        // axios.post(&#39;url&#39;, &#123;/* post请求体数据 */&#125;)
        const &#123;
            data: res
        &#125; = await axios.post(&#39;http://www.liulongbin.top:3006/api/post&#39;, &#123;
            name: &#39;zs&#39;,
            gender: &#39;女&#39;
        &#125;)
        console.log(res);
    &#125;)
</code></pre>
<p></script></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">## 第四章 vue-cli</span><br><span class="line"></span><br><span class="line">##### 4-1 介绍并安装vue-cli</span><br><span class="line"></span><br><span class="line">1. 单页面应用程序（Single Page Application):简称SPA</span><br><span class="line"></span><br><span class="line">   - 一个Web网站中只有唯一的一个HTML页面，所有的功能与交互都在这一个页面内完成</span><br><span class="line"></span><br><span class="line">2. 什么是vue-cli ：</span><br><span class="line"></span><br><span class="line">   - vue-cli是Vue.js 开发的标准工具，简化了基于webpack 创建工具化的Vue项目的过程</span><br><span class="line"></span><br><span class="line">   </span><br><span class="line"></span><br><span class="line">3. vue-cli 是npm上的一个全局包，使用 npm install 命令， 方便于安装到自己的电脑上 `npm install @vue/cli`</span><br><span class="line"></span><br><span class="line">   - 基于vue-cli 快速生成工程化的Vue项目 ：</span><br><span class="line"></span><br><span class="line">     `vue create 项目的名称`</span><br><span class="line"></span><br><span class="line">   - vue项目中src目录的构成 ：</span><br><span class="line"></span><br><span class="line">     - `assets`文件夹，存放项目中用到的静态资源文件，例如 ：css样式表，图片资源</span><br><span class="line">     - components 文件夹，程序员封装的，可复用的组件，都要放到 components目录下</span><br><span class="line">     - main.js 是项目的入口文件，整个项目的运行，要先执行</span><br><span class="line"></span><br><span class="line">   - 冻结  ： 轻轻点一下，按ctrl+c</span><br><span class="line"></span><br><span class="line">##### 4-2 了解vue项目的运行</span><br><span class="line"></span><br><span class="line">1. 在工程化的项目中,vue要做的事情很单纯 ： 通过**main.js** 把**App.vue** 渲染到 **index.html** 的指定区域中（把ip为app的div给替换掉）</span><br><span class="line">2. - App.vue用来编写待渲染的**模板结构**</span><br><span class="line">   - **index.html**中需要预留一个**el区域**</span><br><span class="line">   - main.js把App.vue渲染到了index.html所预留的区域中</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">##### 4-3 组件的基本使用</span><br><span class="line"></span><br><span class="line">1. 声明自己的模板结构，类似于app.vue</span><br><span class="line"></span><br><span class="line">2. main.js文件中：</span><br><span class="line"></span><br><span class="line">   ```js</span><br><span class="line">   // 导入vue这个包，得到Vue 构造函数</span><br><span class="line">   import Vue from &#x27;vue&#x27;</span><br><span class="line">   // 导入 App.cue 跟组件，将来要把App.vue 中的模板结构，渲染到HTML 页面中</span><br><span class="line">   // import App from &#x27;./App.vue&#x27;</span><br><span class="line">   import Test from &#x27;./Test.vue&#x27;</span><br><span class="line">   </span><br><span class="line">   Vue.config.productionTip = false</span><br><span class="line">   </span><br><span class="line">   // 创建Vue的实例对象</span><br><span class="line">   new Vue(&#123;</span><br><span class="line">           //把App文件里面的UI结构渲染到el指定的区域（ip为app所在的位置）</span><br><span class="line">           // el: &#x27;#app&#x27;, //手动指定渲染在哪里</span><br><span class="line">           render: h =&gt; h(Test)</span><br><span class="line">       &#125;).$mount(&#x27;#app&#x27;) //指定app区域</span><br><span class="line">   </span><br><span class="line">   //Vue实例的 $mount()方法，作用和el属性完全一样</span><br></pre></td></tr></table></figure></li>
<li><p>组件化开发：</p>
<ul>
<li><p>定义：  根据封装的思想，把页面上可重用的UI结构封装为组件，从而方便项目的开发和维护</p>
</li>
<li><p>vue是一个支持组件化开发的前端框架</p>
</li>
<li><p>组件的后缀名：.vue。之前接触的App.vue文件本质上是一个vue的组件</p>
</li>
</ul>
</li>
<li><p>vue组件的三个组成部分</p>
<ul>
<li>.template -&gt; 组件的<strong>模板结构</strong></li>
<li>script -&gt; 组件的JavaScript行为</li>
<li>style -&gt; 组件的样式</li>
</ul>
</li>
<li><p>temple..只能出现一个根元素</p>
</li>
</ol>
<h5 id="4-4-使用组件的三个步骤"><a href="#4-4-使用组件的三个步骤" class="headerlink" title="4-4 使用组件的三个步骤"></a>4-4 使用组件的三个步骤</h5><ol>
<li><p>组件在被封装好之后，彼此之间是相互独立的，不存在父子关系</p>
</li>
<li><p>组件之间的父子关系</p>
<ul>
<li>在使用组件的时候，根据彼此的嵌套关系，形成了父子关系，兄弟关系</li>
</ul>
</li>
<li><p>使用组件的步骤：</p>
<ul>
<li><p>App.vue中 ： 使用import语法<strong>导入需要的组件</strong></p>
<ul>
<li><p><code>import Left from &quot;@/components/Left/Left.vue&quot; </code></p>
</li>
<li><p>@的配置： 在<code>webpack.config.js</code>中：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">module</span>.exports = &#123;</span><br><span class="line">    <span class="attr">resolve</span> : &#123;</span><br><span class="line">        <span class="attr">alias</span>: &#123;</span><br><span class="line">            @:path.join(_dirname<span class="string">&#x27;./src&#x27;</span>)</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></li>
<li><p>vue-cli已经给配置好了，使用 @就代表src目录</p>
</li>
</ul>
</li>
<li><p>步骤二： 使用<code>components</code>节点注册组件</p>
</li>
<li><p>步骤三 ： 以标签形式，使用注册好的组件</p>
</li>
</ul>
</li>
<li><p>在VSCode中配置@路径提示的插件</p>
</li>
</ol>
<h5 id="4-5-私有子组件和公有组件"><a href="#4-5-私有子组件和公有组件" class="headerlink" title="4-5 私有子组件和公有组件"></a>4-5 私有子组件和公有组件</h5><ol>
<li><p>通过components注册的是<strong>私有子组件</strong>例如： </p>
<ul>
<li>在组件A 的components 节点下，注册了组件F</li>
</ul>
</li>
</ol>
<ul>
<li> 则组件F只能用在组件A中；不 能被用在<strong>组件C</strong>中</li>
</ul>
<ol start="2">
<li><p>注册全局组件</p>
<ul>
<li>在vue项目的<code>main.js</code>入口文件中，通过<code>Vue.component()</code>方法 , 可以注册全局组件</li>
</ul>
</li>
<li><p><code>auto close tag</code>自动闭合标签的插件</p>
<ul>
<li>``</li>
</ul>
</li>
<li><p>例子在vue2的demo-first中</p>
</li>
</ol>
<h5 id="4-6-为count组件声明props自定义属性"><a href="#4-6-为count组件声明props自定义属性" class="headerlink" title="4-6  为count组件声明props自定义属性"></a>4-6  为count组件声明props自定义属性</h5><ol>
<li><p>组件的props</p>
<ul>
<li><p>props是组件的<strong>自定义属性</strong>，在<strong>封装通用组件</strong>时候，合理使用props可以极大提高组件的复用性</p>
</li>
<li><p>语法格式：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">export</span> <span class="keyword">default</span> &#123;</span><br><span class="line">    <span class="comment">//组件的自定义属性</span></span><br><span class="line">    <span class="attr">props</span> : [<span class="string">&#x27;自定义属性A&#x27;</span>， <span class="string">&#x27;自定义属性B&#x27;</span>, <span class="string">&#x27;...&#x27;</span>],</span><br><span class="line">    <span class="comment">//组件的私有数据</span></span><br><span class="line">    <span class="function"><span class="title">data</span>(<span class="params"></span>)</span>&#123;</span><br><span class="line">        <span class="keyword">return</span> &#123; &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></li>
</ul>
</li>
<li><p>结合v-bind使用自定义属性</p>
<ul>
<li>init传来的是一个字符串，使用: <code>&lt;Mycount :init=&quot;9&quot;&gt;&lt;/Mycount&gt;</code></li>
</ul>
</li>
<li><ul>
<li>组件的封装者</li>
<li>组件的使用者</li>
</ul>
</li>
<li><p>props是只读的</p>
<ul>
<li><p>init可以在模板中使用</p>
</li>
<li><p>组件中封装的自定义属性是<strong>只读的</strong>，程序员<strong>不能直接修改</strong>props的值。否则会报错：</p>
</li>
</ul>
</li>
<li><p>props的default默认值</p>
<ul>
<li><p>示例代码: props通过defult传递默认值</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">export</span> <span class="keyword">default</span> &#123;</span><br><span class="line">    <span class="attr">props</span>:&#123;</span><br><span class="line">        <span class="attr">init</span>: &#123;</span><br><span class="line">            <span class="comment">// 用default 属性定义属性的默认值</span></span><br><span class="line">            <span class="attr">default</span> :<span class="number">0</span></span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></li>
</ul>
</li>
<li><p>props - required必填项</p>
</li>
</ol>
<h2 id="第五章-生命周期【我不会】＋父向子传值-兄弟传值"><a href="#第五章-生命周期【我不会】＋父向子传值-兄弟传值" class="headerlink" title="第五章  生命周期【我不会】＋父向子传值+兄弟传值"></a>第五章  生命周期【我不会】＋父向子传值+兄弟传值</h2><h5 id="5-1-样式冲突-–-了解scoped的使用和底层实现原理"><a href="#5-1-样式冲突-–-了解scoped的使用和底层实现原理" class="headerlink" title="5-1 样式冲突 – 了解scoped的使用和底层实现原理"></a>5-1 样式冲突 – 了解scoped的使用和底层实现原理</h5><ol>
<li><p>问题：left.vue中的h3样式改动之后，影响到了right.vue的样式以及全局的h3样式</p>
</li>
<li><p>scope可以替代属性选择器，解不同组件间的的样式混用的问题</p>
<ul>
<li>！！！！和讲的不一样啊！！！！</li>
</ul>
</li>
<li><p>当使用第三方组件库的时候，要修改第三方组件默认样式的需求，需要使用 <code>/deep/</code>，例如： [vant](<a target="_blank" rel="noopener" href="https://gitee.com/amateur_gang/vant">vant: 轻量、可靠的移动端 Vue 组件库 (gitee.com)</a>)</p>
</li>
</ol>
<h5 id="5-2-vue的实例对象"><a href="#5-2-vue的实例对象" class="headerlink" title="5-2  vue的实例对象"></a>5-2  vue的实例对象</h5><ol>
<li><p>.vue结尾的文件，浏览器打不开，有一个编译的过程，.vue只是一个模板</p>
<ul>
<li>package.json中的<code>vue-template-compiler</code>会把每一行vue代码转换成页面可识别, 交给浏览器去执行</li>
</ul>
</li>
</ol>
<h5 id="5-3-生命周期和数据共享"><a href="#5-3-生命周期和数据共享" class="headerlink" title="5-3 生命周期和数据共享"></a>5-3 生命周期和数据共享</h5><ol>
<li><p>vue不建议去手动获取dom元素，应该用ref</p>
</li>
<li><p>生命周期（Life Cycel） 是从一个组件从<strong>创建 –&gt; 运行 —&gt;销毁</strong> 的整个过程，<strong>强调的是一个时间段</strong></p>
</li>
<li><p>生命周期函数 ： 是由vue框架提供的内置函数，会伴随着组件的生命周期，<strong>自动按次序执行</strong></p>
</li>
<li><p>组件生命周期函数的分类</p>
<ul>
<li><p>组件创建阶段</p>
</li>
<li><p>组件运行阶段</p>
</li>
<li><p>组件销毁阶段</p>
<p><img src="D:/Front-end/md%E7%AC%94%E8%AE%B0/vue/vue/pc/12.png" alt="12"></p>
</li>
</ul>
</li>
</ol>
<ol start="5">
<li>了解beforeCreate和created生命周期函数的特点<img src="D:/Front-end/md%E7%AC%94%E8%AE%B0/vue/vue/pc/13.png" alt="13"></li>
</ol>
<ul>
<li><p>creates生命周期函数，很常用</p>
</li>
<li><p>经常在它里面，调用methods中的方法，请求服务器的数据</p>
</li>
<li><p>并且，把请求到的数据，转存到data中，供template模板渲染的时候使用</p>
<p><img src="https://i.loli.net/2021/09/02/z62kT4aiCHRs7c9.png" alt="14"></p>
</li>
</ul>
<h5 id="5-4-父乡子传值-–-使用自定义属性"><a href="#5-4-父乡子传值-–-使用自定义属性" class="headerlink" title="5-4 父乡子传值 – 使用自定义属性"></a>5-4 父乡子传值 – 使用自定义属性</h5><ol>
<li><p>项目开发过程中，组件之间最常见的关系分为:</p>
<ul>
<li>父子关系</li>
<li>兄弟关系</li>
</ul>
</li>
<li><p>父子组件之间的数据共享</p>
<ul>
<li>（1）父 –&gt; 子 共享数据</li>
<li>（2）子 –&gt; 父 共享数据</li>
</ul>
</li>
<li><p>父组件向子组件共享数据需要使用<strong>自定义属性</strong>（父组件传递数据给子组件）</p>
<ul>
<li><p>示例代码 ：</p>
<ul>
<li>父组件</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//父组件</span></span><br><span class="line">&lt;Son :msg=<span class="string">&quot;message&quot;</span> :user = <span class="string">&quot;userinfo&quot;</span>&gt;&lt;/Son&gt;</span><br><span class="line"></span><br><span class="line"><span class="function"><span class="title">data</span>(<span class="params"></span>)</span> &#123;</span><br><span class="line">    <span class="keyword">return</span>&#123;</span><br><span class="line">        <span class="attr">message</span> : <span class="string">&#x27;hello vue.js&#x27;</span>,</span><br><span class="line">        <span class="attr">userinfo</span>: &#123;<span class="attr">name</span>: <span class="string">&#x27;zs&#x27;</span>, <span class="attr">age</span>: <span class="number">20</span>&#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<ul>
<li>子组件<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">&lt;template&gt;</span><br><span class="line">	<span class="xml"><span class="tag">&lt;<span class="name">div</span>&gt;</span></span></span><br><span class="line"><span class="xml">    	<span class="tag">&lt;<span class="name">h5</span>&gt;</span>父组件传递来的 msg值是<span class="tag">&lt;/<span class="name">h5</span>&gt;</span></span></span><br><span class="line"><span class="xml">		<span class="tag">&lt;<span class="name">p</span>&gt;</span>父组件传递过来的 user 值是： &#123;&#123; msg &#125;&#125;<span class="tag">&lt;/<span class="name">p</span>&gt;</span></span></span><br><span class="line"><span class="xml">    <span class="tag">&lt;/<span class="name">div</span>&gt;</span></span>    </span><br><span class="line">&lt;/template&gt;</span><br><span class="line"></span><br><span class="line">props： [<span class="string">&#x27;msg&#x27;</span>,<span class="string">&#x27;user&#x27;</span>]</span><br></pre></td></tr></table></figure></li>
</ul>
</li>
</ul>
</li>
<li><p> 在子组件中修改父组件的对象值有两种情况，修改对象的值时重新指向新的对象；修改对象的某个属性值时全局的该对象值都改变了</p>
</li>
</ol>
   <figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">&lt;button @click=<span class="string">&quot;msg = &#x27;abc&#x27;&quot;</span>&gt;修改msg的值&lt;/button&gt;</span><br><span class="line"> <span class="xml"><span class="tag">&lt;<span class="name">button</span> @<span class="attr">click</span>=<span class="string">&quot;user = &#123;address: &#x27;bj&#x27;&#125;&quot;</span>&gt;</span>修改user<span class="tag">&lt;/<span class="name">button</span>&gt;</span></span></span><br><span class="line"><span class="xml"><span class="tag">&lt;<span class="name">button</span> @<span class="attr">click</span>=<span class="string">&quot;user = &#123;address: &#x27;bj&#x27;&#125;&quot;</span>&gt;</span>修改user<span class="tag">&lt;/<span class="name">button</span>&gt;</span></span></span><br></pre></td></tr></table></figure>
<ol start="5">
<li><strong>不要修改props的值</strong></li>
</ol>
<h5 id="5-5-子向父传值-–-自定义事件【你不会哦！！！这图可能都是错的】"><a href="#5-5-子向父传值-–-自定义事件【你不会哦！！！这图可能都是错的】" class="headerlink" title="5-5 子向父传值 – 自定义事件【你不会哦！！！这图可能都是错的】"></a>5-5 子向父传值 – 自定义事件【你不会哦！！！这图可能都是错的】</h5><ol>
<li><p>子组件向父组件共享数据使用<strong>自定义事件</strong>，示例代码：</p>
<ul>
<li>子组件</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">export</span> <span class="keyword">default</span>&#123;</span><br><span class="line">    <span class="function"><span class="title">data</span>(<span class="params"></span>)</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> &#123; <span class="attr">count</span> : <span class="number">0</span>&#125; </span><br><span class="line">    &#125;,</span><br><span class="line">    <span class="attr">methods</span>: &#123;</span><br><span class="line">        <span class="function"><span class="title">add</span>(<span class="params"></span>)</span>&#123;</span><br><span class="line">            <span class="built_in">this</span>.count += <span class="number">1</span></span><br><span class="line">            <span class="comment">//修改数据时， 通过 $emit() 触发自定义事件</span></span><br><span class="line">            <span class="built_in">this</span>.$emit(<span class="string">&#x27;numchange&#x27;</span>,<span class="built_in">this</span>.count)</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<ul>
<li><p>父组件</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">&lt;Son @numchange=<span class="string">&quot;getNewCount &quot;</span>&gt;&lt;/son&gt;</span><br><span class="line"><span class="keyword">export</span> <span class="keyword">default</span> &#123;</span><br><span class="line">    <span class="function"><span class="title">data</span>(<span class="params"></span>)</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> &#123; <span class="attr">countFronSon</span> : <span class="number">0</span>&#125;</span><br><span class="line">    &#125;,</span><br><span class="line">    <span class="attr">methods</span>: &#123;    </span><br><span class="line">        <span class="function"><span class="title">getNewCount</span>(<span class="params">val</span>)</span> &#123;</span><br><span class="line">            <span class="built_in">this</span>.countFronSon = val</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<p><img src="https://i.loli.net/2021/09/03/2E8iCjft7SNHUPm.png" alt="15"></p>
</li>
</ul>
</li>
</ol>
<p>​      </p>
<p>​      </p>
<h5 id="5-6-兄弟组件之间的数据共享【演示EventBus的使用】"><a href="#5-6-兄弟组件之间的数据共享【演示EventBus的使用】" class="headerlink" title="5-6 兄弟组件之间的数据共享【演示EventBus的使用】"></a>5-6 兄弟组件之间的数据共享【演示EventBus的使用】</h5><ol>
<li><p>在vue2.x中，兄弟组件之间的数据共享的方案是<strong>EventBus</strong></p>
<ul>
<li><p>兄弟组件A（数据发送方）</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> bus <span class="keyword">from</span> <span class="string">&#x27;./eventBus.js&#x27;</span></span><br><span class="line"></span><br><span class="line"><span class="keyword">export</span> <span class="keyword">default</span> &#123;</span><br><span class="line">    <span class="function"><span class="title">data</span>(<span class="params"></span>)</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> &#123;</span><br><span class="line">            <span class="attr">msg</span>: <span class="string">&#x27;hello vue.js&#x27;</span></span><br><span class="line">        &#125;</span><br><span class="line">    &#125;,</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></li>
<li><p>eventBus.js </p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> Vue <span class="keyword">from</span> <span class="string">&#x27;vue&#x27;</span></span><br><span class="line"><span class="comment">//向外共享Vue的实例对象</span></span><br><span class="line"><span class="keyword">export</span> <span class="keyword">default</span> <span class="keyword">new</span> Vue()</span><br></pre></td></tr></table></figure></li>
<li><p>兄弟组件C （数据接收方）</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> bus <span class="keyword">from</span> <span class="string">&#x27;./eventBus.js&#x27;</span></span><br><span class="line"></span><br><span class="line"><span class="keyword">export</span> <span class="keyword">default</span> &#123;</span><br><span class="line">    <span class="function"><span class="title">data</span>(<span class="params"></span>)</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> &#123;</span><br><span class="line">            <span class="attr">msgFromLeft</span>: <span class="string">&#x27;&#x27;</span></span><br><span class="line">        &#125;</span><br><span class="line">    &#125;,</span><br><span class="line">    <span class="function"><span class="title">created</span>(<span class="params"></span>)</span> &#123;</span><br><span class="line">        bus.$on(<span class="string">&#x27;share&#x27;</span>, <span class="function"><span class="params">val</span> =&gt;</span> &#123;</span><br><span class="line">            <span class="built_in">this</span>.msgFromLeft = val</span><br><span class="line">        &#125;)</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></li>
</ul>
</li>
<li><ul>
<li>创建eventBus.js模块，并向外共享一个Vue的实例对象</li>
<li>在数据<strong>发送方</strong>，调用**bus.$emit(‘事件名称’，要发送的数据)**方法触发自定义事件</li>
<li>在数据<strong>接收方</strong>，调用<strong>bus.$on(‘事件名称’，事件处理函数)<strong>方法</strong>注册一个自定义事件</strong></li>
</ul>
</li>
</ol>
<h2 id="第六章-ref控制DOM元素以及购物车案例【难到吐血】"><a href="#第六章-ref控制DOM元素以及购物车案例【难到吐血】" class="headerlink" title="第六章  ref控制DOM元素以及购物车案例【难到吐血】"></a>第六章  ref控制DOM元素以及购物车案例【难到吐血】</h2><h5 id="6-1-使用ref应用DOM元素"><a href="#6-1-使用ref应用DOM元素" class="headerlink" title="6-1 使用ref应用DOM元素"></a>6-1 使用ref应用DOM元素</h5><ol>
<li><p>vue优势： MVVM 在vue中，程序员不需要操作DOM。程序员只需要把数据维护好</p>
<ul>
<li>在vue项目，墙裂不建议大家安装和使用Jquery！</li>
<li>在vue中，需要操作对象，需要拿到页面上的某个DOM元素的引用，方法：</li>
</ul>
</li>
<li><p>ref引用：</p>
<ul>
<li>ref用来辅助开发者<strong>不依赖jQuery</strong>的情况下，获取DOM元素或组件的引用</li>
<li>每个vue的组件实例上，都包含一个$refs对象，里面存储着对应的DOM元素或组件。默认情况下，组件的$refs指向一个空对象</li>
</ul>
</li>
<li><p>````js</p>
<pre><code>&lt;button @click = &quot;showThis&quot;&gt;打印 this&lt;/button&gt;
</code></pre>
<p>export default {<br>  methods:{</p>
<pre><code>showThis() &#123;
  //当前APP 组件的实例对象
  console.log(this);
&#125;
</code></pre>
<p>  }<br>}</p>
<p>//$开头的都是vue中的实例</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">4. ref的值不能相同</span><br><span class="line"></span><br><span class="line">   ```js</span><br><span class="line">   &lt;h1 ref=&quot;app&quot;&gt;App 根组件&lt;/h1&gt;</span><br><span class="line">   </span><br><span class="line">   export default &#123;</span><br><span class="line">     methods:&#123;</span><br><span class="line">       showThis() &#123;</span><br><span class="line">         //当前APP 组件的实例对象</span><br><span class="line">         // console.log(this.$refs.app);</span><br><span class="line">         this.$refs.app.style.color = &quot;red&quot;;</span><br><span class="line">       &#125;</span><br><span class="line">     &#125;</span><br><span class="line">   &#125;</span><br><span class="line">   ```</span><br><span class="line"></span><br><span class="line">5. **父组件直接调用子组件的方法**：</span><br><span class="line"></span><br><span class="line">   - 使用ref最简便，比父向子传值要简单的多</span><br><span class="line"></span><br><span class="line">   - 演示： 使用父组件的“重置”来使子组件的值变为0</span><br><span class="line"></span><br><span class="line">     ```js</span><br><span class="line">     &lt;button @click=&quot;onReset&quot;&gt;重置Left组件的count&lt;/button&gt;</span><br><span class="line">     &lt;Left ref=&quot;comLeft&quot;&gt;&lt;/Left&gt;</span><br><span class="line">     </span><br><span class="line">     import Left from &#x27;@/components/Left.vue&#x27;</span><br><span class="line">     export default &#123;</span><br><span class="line">       methods:&#123;</span><br><span class="line">         showThis() &#123;</span><br><span class="line">           //当前APP 组件的实例对象</span><br><span class="line">           console.log(this.$refs.app);</span><br><span class="line">           this.$refs.app.style.color = &quot;red&quot;;</span><br><span class="line">         &#125;,</span><br><span class="line">         //点击按钮，重置Left组件的count值</span><br><span class="line">         onReset() &#123;</span><br><span class="line">           // this.$refs.comLeft.resetCount()</span><br><span class="line">           this.$refs.comLeft.count = 0</span><br><span class="line">         &#125;</span><br><span class="line">       &#125;,</span><br><span class="line">       components:&#123;</span><br><span class="line">         Left</span><br><span class="line">       &#125;</span><br><span class="line">     &#125;</span><br><span class="line">     ```</span><br><span class="line"></span><br><span class="line">##### 6-2 初步实现按钮和文本框的按需展示</span><br><span class="line"></span><br><span class="line">1. ````js</span><br><span class="line">   &lt;input type=&quot;text&quot; v-if=&quot;inputVisible&quot; @blur=&quot;showButton&quot;&gt;</span><br><span class="line">   &lt;button v-else @click = &quot;showInput&quot;&gt;展示输入框&lt;/button&gt;</span><br><span class="line">   </span><br><span class="line">   export default &#123;</span><br><span class="line">     data()&#123;</span><br><span class="line">       return &#123;</span><br><span class="line">   </span><br><span class="line">         //控制输入框和按钮的按需切换</span><br><span class="line">         inputVisible: false</span><br><span class="line">       &#125;</span><br><span class="line">     &#125;,</span><br><span class="line">     methods:&#123;</span><br><span class="line">       showInput() &#123;</span><br><span class="line">          //点击按钮，展示输入框</span><br><span class="line">         //1. 切换布尔值，把文本框展示出来</span><br><span class="line">           this.inputVisible =true;</span><br><span class="line">           //2. 让展示出零四的文本框，自动获取焦点</span><br><span class="line">           //这里会报undefined，因为生命周期。页面渲染完毕之后才能执行</span><br><span class="line">           this.$nextTick(() =&gt; &#123;</span><br><span class="line">             this.$refs.ipRef.focus()</span><br><span class="line">           &#125;)</span><br><span class="line">       &#125;,</span><br><span class="line">       showButton() &#123;</span><br><span class="line">         this.inputVisible = false;</span><br><span class="line">       &#125;,</span><br><span class="line">     &#125;</span><br><span class="line">   &#125;</span><br></pre></td></tr></table></figure></li>
<li><p>ref- 了解<code>this.$nextTick</code>的应用场景</p>
<ul>
<li>组件的<code>$nextTick(cb)</code>方法，会把cb回调<strong>推迟到下一个DOM更新周期之后执行</strong></li>
<li>即 等组件DOM更新完成之后，再执行cb回调函数，从而保证cb回调函数可以操作最新的DOM元素</li>
</ul>
</li>
</ol>
<h5 id="6-3-购物车-案例【again，很重要啊！！！】"><a href="#6-3-购物车-案例【again，很重要啊！！！】" class="headerlink" title="6-3 购物车 案例【again，很重要啊！！！】"></a>6-3 购物车 案例【again，很重要啊！！！】</h5><ol>
<li><p>数组中的方法： some循环</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br></pre></td><td class="code"><pre><span class="line">&lt;script&gt;</span><br><span class="line">        <span class="keyword">const</span> arr = [<span class="string">&#x27;小红&#x27;</span>, <span class="string">&#x27;你啦&#x27;</span>, <span class="string">&#x27;DJ&#x27;</span>, <span class="string">&#x27;dg&#x27;</span>];</span><br><span class="line">        <span class="comment">//forEach循环只要开始，会必须全部走完.return 都没有作用</span></span><br><span class="line">        <span class="comment">// arr.forEach(item =&gt; &#123;</span></span><br><span class="line">        <span class="comment">//     console.log(&#x27;ok&#x27;);</span></span><br><span class="line">        <span class="comment">//     if (item === &#x27;苏大强&#x27;) &#123;</span></span><br><span class="line">        <span class="comment">//         console.log(index);</span></span><br><span class="line">        <span class="comment">//         return;</span></span><br><span class="line">        <span class="comment">//     &#125;</span></span><br><span class="line">        <span class="comment">// &#125;)</span></span><br><span class="line">        arr.some(<span class="function">(<span class="params">item, index</span>) =&gt;</span> &#123;</span><br><span class="line">            <span class="built_in">console</span>.log(index);</span><br><span class="line">            <span class="keyword">if</span> (item === <span class="string">&quot;DJ&quot;</span>) &#123;</span><br><span class="line">                <span class="built_in">console</span>.log(index);</span><br><span class="line">                <span class="comment">// 再找到对应的项之后，可以通过 return true固定的语法，来终止 some循环</span></span><br><span class="line">                <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;)</span><br><span class="line">    &lt;/script&gt;</span><br></pre></td></tr></table></figure></li>
<li><p>数组中的方法： every循环</p>
<ul>
<li>只要任意一个state时不是true，旧返回false</li>
<li>arr.filter(item =&gt; item.state).reduce((累加的结果， 当前循环项) =&gt; {}, 初始值)</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">&lt;script&gt;</span><br><span class="line">        <span class="keyword">const</span> arr = [&#123;</span><br><span class="line">                <span class="attr">id</span>: <span class="number">1</span>,</span><br><span class="line">                <span class="attr">name</span>: <span class="string">&#x27;西瓜&#x27;</span>,</span><br><span class="line">                <span class="attr">state</span>: <span class="literal">true</span></span><br><span class="line">            &#125;, &#123;</span><br><span class="line">                <span class="attr">id</span>: <span class="number">2</span>,</span><br><span class="line">                <span class="attr">name</span>: <span class="string">&#x27;黄瓜&#x27;</span>,</span><br><span class="line">                <span class="attr">state</span>: <span class="literal">false</span></span><br><span class="line">            &#125;, &#123;</span><br><span class="line">                <span class="attr">id</span>: <span class="number">3</span>,</span><br><span class="line">                <span class="attr">name</span>: <span class="string">&#x27;西瓜&#x27;</span>,</span><br><span class="line">                <span class="attr">state</span>: <span class="literal">true</span></span><br><span class="line">            &#125;, ]</span><br><span class="line">            <span class="comment">//需求：判断数组中，每个水果是否被选中</span></span><br><span class="line">        <span class="keyword">const</span> result = arr.every(<span class="function"><span class="params">item</span> =&gt;</span> item.state === <span class="literal">true</span>)</span><br><span class="line">        <span class="built_in">console</span>.log(result);</span><br><span class="line">    &lt;/script&gt;</span><br></pre></td></tr></table></figure></li>
<li><p>数组的方法 ： reduce的基本用法</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br></pre></td><td class="code"><pre><span class="line">&lt;script&gt;</span><br><span class="line">        <span class="keyword">const</span> arr = [&#123;</span><br><span class="line">            <span class="attr">id</span>: <span class="number">1</span>,</span><br><span class="line">            <span class="attr">name</span>: <span class="string">&#x27;西瓜&#x27;</span>,</span><br><span class="line">            <span class="attr">state</span>: <span class="literal">true</span>,</span><br><span class="line">            <span class="attr">price</span>: <span class="number">10</span>,</span><br><span class="line">            <span class="attr">count</span>: <span class="number">1</span></span><br><span class="line">        &#125;, &#123;</span><br><span class="line">            <span class="attr">id</span>: <span class="number">2</span>,</span><br><span class="line">            <span class="attr">name</span>: <span class="string">&#x27;西瓜&#x27;</span>,</span><br><span class="line">            <span class="attr">state</span>: <span class="literal">true</span>,</span><br><span class="line">            <span class="attr">price</span>: <span class="number">10</span>,</span><br><span class="line">            <span class="attr">count</span>: <span class="number">1</span></span><br><span class="line">        &#125;, &#123;</span><br><span class="line">            <span class="attr">id</span>: <span class="number">3</span>,</span><br><span class="line">            <span class="attr">name</span>: <span class="string">&#x27;西瓜&#x27;</span>,</span><br><span class="line">            <span class="attr">state</span>: <span class="literal">false</span>,</span><br><span class="line">            <span class="attr">price</span>: <span class="number">10</span>,</span><br><span class="line">            <span class="attr">count</span>: <span class="number">1</span></span><br><span class="line">        &#125;, &#123;</span><br><span class="line">            <span class="attr">id</span>: <span class="number">4</span>,</span><br><span class="line">            <span class="attr">name</span>: <span class="string">&#x27;西瓜&#x27;</span>,</span><br><span class="line">            <span class="attr">state</span>: <span class="literal">true</span>,</span><br><span class="line">            <span class="attr">price</span>: <span class="number">10</span>,</span><br><span class="line">            <span class="attr">count</span>: <span class="number">1</span></span><br><span class="line">        &#125;, ]</span><br><span class="line"></span><br><span class="line">        <span class="comment">// 需求： 把购物车数组中，已勾选的水果，总价累加起来</span></span><br><span class="line">        <span class="comment">/* let amt = 0 //总价</span></span><br><span class="line"><span class="comment">        arr.filter(item =&gt; item.state).forEach(item =&gt; &#123;</span></span><br><span class="line"><span class="comment">            amt += item.price * item.count</span></span><br><span class="line"><span class="comment">        &#125;)</span></span><br><span class="line"><span class="comment">        console.log(amt); */</span></span><br><span class="line"></span><br><span class="line">        <span class="comment">/*let amt = 0;</span></span><br><span class="line"><span class="comment">        // arr.filter(item =&gt; item.state).reduce((累加的结果， 当前循环项) =&gt; &#123;&#125;, 初始值)</span></span><br><span class="line"><span class="comment">        const result = arr.filter(item =&gt; item.state).reduce((amt, item) =&gt; &#123;</span></span><br><span class="line"><span class="comment">            return amt += item.price * item.count</span></span><br><span class="line"><span class="comment">        &#125;, 0)</span></span><br><span class="line"><span class="comment">        console.log(result);*/</span></span><br><span class="line"></span><br><span class="line">	<span class="comment">//最简写法: </span></span><br><span class="line">	<span class="keyword">const</span> result = arr.filter(<span class="function"><span class="params">item</span> =&gt;</span> item.state).reduce(<span class="function">(<span class="params">amt,item</span>) =&gt;</span> amt += item.price * item.count,<span class="number">0</span>)</span><br><span class="line">    &lt;/script&gt;</span><br><span class="line"></span><br><span class="line"><span class="comment">// 结果为30</span></span><br></pre></td></tr></table></figure></li>
</ol>
<h5 id="6-4-购物车案例：-导入、注册、使用Header组件"><a href="#6-4-购物车案例：-导入、注册、使用Header组件" class="headerlink" title="6-4 购物车案例： 导入、注册、使用Header组件"></a>6-4 购物车案例： 导入、注册、使用Header组件</h5><ol>
<li><p>组件化开发： 为了代码的复用</p>
</li>
<li><p>实现步骤： </p>
<ul>
<li>初始化项目基本结构</li>
<li>封装<strong>MyHeader组件</strong><ul>
<li>基于axios请求商品列表数据（GET请求，地址为gttp://<a target="_blank" rel="noopener" href="http://www.escook.cn/api/cart%EF%BC%89">www.escook.cn/api/cart）</a></li>
<li>封装MyFooter组件</li>
<li>封装<strong>MyGoods组件</strong></li>
<li>封装<strong>MyCounter</strong>组件</li>
</ul>
</li>
</ul>
</li>
<li><ul>
<li>安装并在App中导入axios</li>
<li>在methods方法中，定义initCartList函数请求列表</li>
<li>在created生命周期函数中，调用步骤2封装的initCartList 函数</li>
</ul>
</li>
</ol>
<h5 id="6-5-购物车案例–-为Goods组件封装title和pic属性"><a href="#6-5-购物车案例–-为Goods组件封装title和pic属性" class="headerlink" title="6-5 购物车案例– 为Goods组件封装title和pic属性"></a>6-5 购物车案例– 为Goods组件封装title和pic属性</h5><ol>
<li></li>
<li><p>分别封装props两种方案的优缺点对比</p>
<ul>
<li><img src="D:/Front-end/md%E7%AC%94%E8%AE%B0/vue/vue/pc/16.png" alt="16"></li>
</ul>
</li>
<li><ul>
<li><p>子传父组件 : 自定义事件</p>
<ul>
<li><p>在子组件中，要监听 复选框 状态变化的事件，拿到最新的勾选状态</p>
<p><code>&lt;input type = &quot;checkbox&quot; @change = &quot;stateChange&quot;&gt;</code></p>
<p>只要复选框的勾选状态发生变化之后，会自动触发change事件</p>
</li>
<li><p>当监听到勾选状态变化之后，应该立即把最新的状态，通过 自定义事件的形式，发送给父组件</p>
<p><code>this.$emit(&#39;state-change&#39;,&#123;id,value&#125;)</code></p>
<p>其中，id表示当前这件商品的id，value的值是最新的勾选状态</p>
</li>
</ul>
</li>
<li><p>父传子组件： 自定义属性</p>
</li>
</ul>
</li>
</ol>
<h2 id="第七章-动态组件-amp-插槽-amp-自定义指令"><a href="#第七章-动态组件-amp-插槽-amp-自定义指令" class="headerlink" title="第七章 动态组件 &amp; 插槽 &amp; 自定义指令"></a>第七章 动态组件 &amp; 插槽 &amp; 自定义指令</h2><h5 id="7-1"><a href="#7-1" class="headerlink" title="7-1"></a>7-1</h5><ol>
<li><p>动态组件： 不同组件之间的按需展示： 不用v-if以及v-else</p>
</li>
<li><p>动态组件 值得是 <strong>动态切换组件的显示和隐藏</strong></p>
</li>
<li><p>vue提供了一个<code>&lt;component&gt;</code>组件，专门用来实现动态组建的渲染</p>
</li>
<li><p>介绍<code>component</code>标签的基础用法</p>
<ul>
<li><p>专门用来实现动态组件的渲染</p>
</li>
<li><p>is 属性指定哪个组件的名称，就显示哪个组件，is可以</p>
<p><code>&lt;component :is= &quot;comName&quot;&gt;&lt;/component&gt;</code></p>
</li>
</ul>
</li>
</ol>
<h5 id="7-2-keep-alive"><a href="#7-2-keep-alive" class="headerlink" title="7-2 keep-alive"></a>7-2 keep-alive</h5><ol>
<li><p>问题： Left组件中数字不断+1之后，切换回到Left组件之后值为0（default）</p>
</li>
<li><p>```js</p>
<keep-alive>
        <components :is="comName"></components>
      </keep-alive>

<script>
export default {
data(){
  return {
    count: 0
  }
},
created(){
  console.log('Right组件被创建了');

},
destroyed(){
  console.log('R组件被销毁了');
}
}
</script>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">3. 使用keep-alive保持组件的状态： 哪怕被隐藏了，也不会被销毁，</span><br><span class="line"></span><br><span class="line">   - keep-alive可以把内部的组件进行缓存，而不是销毁</span><br><span class="line">   </span><br><span class="line">4. keep-alive 对应的声明周期函数</span><br><span class="line"></span><br><span class="line">   - 当组件被缓存时，会自动触发组件的**deactivated**声明周期函数</span><br><span class="line">   - 当组件**被激活**时，会自动触发组件的**activated**生命周期函数</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">##### 7-3 指定哪个组件可以被缓存</span><br><span class="line"></span><br><span class="line">1. keep-alive 的 **include**属性</span><br><span class="line"></span><br><span class="line">   - include属性用来指定 ： 只有**名称匹配的租价**会被缓存，多个组件名之间使用**英文的逗号**分隔</span><br><span class="line"></span><br><span class="line">   - 或者，通过exclude 属性指定哪些组件不需要被缓存，不要同时使用include和exclude两个属性</span><br><span class="line"></span><br><span class="line">   - ```js</span><br><span class="line">       &lt;keep-alive include=&quot;Left,Right&quot;&gt;</span><br><span class="line">             &lt;components :is=&quot;comName&quot;&gt;&lt;/components&gt;</span><br><span class="line">           &lt;/keep-alive&gt;</span><br></pre></td></tr></table></figure></li>
<li><p>name 属性</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">&lt;script&gt;</span><br><span class="line"><span class="keyword">export</span> <span class="keyword">default</span> &#123;</span><br><span class="line">  <span class="comment">// 当提供了name属性之后，组件的名称，就是name属性的值</span></span><br><span class="line">  <span class="comment">// 对比</span></span><br><span class="line">  <span class="comment">// 1. 组件的“注册名称” 主要应用场景是 ： 以标签的形式，把注册号的组件，渲染和使用到页面结构之中</span></span><br><span class="line">  <span class="comment">// 2, 组件声明时候的&quot;&quot;name名称的只要应用场景： 结合&lt;keep-alive&gt;标签实现组件缓存功能；以及在调试工具中看到组建的name名称；在父组件中注册组件时不适用name值</span></span><br><span class="line">  <span class="attr">name</span>: <span class="string">&#x27;MyLeft&#x27;</span>,</span><br><span class="line">&#125;</span><br><span class="line">&lt;/script&gt;</span><br></pre></td></tr></table></figure></li>
</ol>
<h5 id="7-4-插槽【没有改了最后的案例】"><a href="#7-4-插槽【没有改了最后的案例】" class="headerlink" title="7-4 插槽【没有改了最后的案例】"></a>7-4 插槽【没有改了最后的案例】</h5><ol>
<li><p>插槽（Slot）是vue为<strong>组件的封装者</strong>提供的能力。允许开发者在封装组件时，把<strong>不确定的、希望由用户指定的部分</strong>定义为插槽</p>
</li>
<li><p>后备内容 ： 封装组件的时候，可以为预留的<code>&lt;slot&gt;</code>插槽提供<strong>后备内容（默认内容）。</strong>如果组件的使用者没有为插槽提供任何内容，则后备内容会生效。示例代码如下： </p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">// App.vue中</span></span><br><span class="line">     &lt;Left&gt;</span><br><span class="line">        &lt;!-- 默认情况下，在使用组件的时候，提供的内容都会被填充到名字为<span class="keyword">default</span> 的插槽之中 --&gt;</span><br><span class="line">        &lt;!-- v-slot只能用于template标签上 --&gt;</span><br><span class="line">        &lt;!-- <span class="number">1.</span> 如果要把内容填充到指定名称的插槽中，需要使用v-slot: 这个指令</span><br><span class="line">        <span class="number">2.</span>  v-slot: 后面要跟上插槽的名字</span><br><span class="line">        <span class="number">3.</span> v-slot：指令不能直接用在元素身上，必须用在template 标签上</span><br><span class="line">        <span class="number">4.</span> tempalte 这个标签，它是一个虚拟的标签，只起到包裹性质的作用，但是，不会被渲染为任何实质性的html元素 --&gt;</span><br><span class="line"></span><br><span class="line">        &lt;!-- v-slot的简写 : # --&gt;</span><br><span class="line">        <span class="xml"><span class="tag">&lt;<span class="name">template</span> #<span class="attr">default</span>&gt;</span></span></span><br><span class="line"><span class="xml">          <span class="tag">&lt;<span class="name">p</span>&gt;</span>这是在Left 组件的内容区域， 声明的p标签<span class="tag">&lt;/<span class="name">p</span>&gt;</span></span></span><br><span class="line"><span class="xml">        <span class="tag">&lt;/<span class="name">template</span>&gt;</span></span></span><br><span class="line">      &lt;/Left&gt;</span><br><span class="line"></span><br><span class="line"><span class="comment">// Left组件中</span></span><br><span class="line">    &lt;!--  声明一个插槽区域 --&gt;</span><br><span class="line">    &lt;!--   vue官方规定： 每一个slot插槽，都要有一个name名称 --&gt;</span><br><span class="line">    &lt;!-- 如果省略了slot的name属性，则有一个默认名称叫做 <span class="keyword">default</span> --&gt;</span><br><span class="line">   <span class="xml"><span class="tag">&lt;<span class="name">slot</span> <span class="attr">name</span>=<span class="string">&quot;default&quot;</span>&gt;</span>这是 default 插槽的默认内容<span class="tag">&lt;/<span class="name">slot</span>&gt;</span></span></span><br></pre></td></tr></table></figure></li>
<li><p>具名插槽的定义和使用</p>
<ul>
<li>name不叫default的是具名插槽，是default的加匿名插槽</li>
</ul>
</li>
</ol>
<h5 id="7-5-自定义指令"><a href="#7-5-自定义指令" class="headerlink" title="7-5 自定义指令"></a>7-5 自定义指令</h5><ol>
<li><p>自定义指令 ： vue官方提供了v-text, v-for, v-model, v-if 等常用的指令。初次之外vue还允许开发者自定义指令</p>
</li>
<li><p>vue中的自定义指令分为两类：</p>
<ul>
<li>私有自定义指令</li>
<li>全局自定义指令</li>
</ul>
</li>
<li><p>私有自定义指令：</p>
<ul>
<li><p>在每个vue组件中，可以在<code>directives</code>节点下声明<strong>私有自定义指令</strong></p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">directives: &#123;</span><br><span class="line">    <span class="attr">color</span>: &#123;</span><br><span class="line">        <span class="comment">// 为绑定到的HTMl元素设置红色的文字</span></span><br><span class="line">        <span class="function"><span class="title">bind</span>(<span class="params">el</span>)</span>&#123;</span><br><span class="line">        <span class="comment">// 形参中 的el时绑定了此指令的，原生的 DOM 对象</span></span><br><span class="line">        	el.style.color = <span class="string">&#x27;red&#x27;</span>       </span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></li>
</ul>
</li>
<li><p>私有自定义 — 案例 ：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">&lt;h1 v-color=<span class="string">&quot;color&quot;</span>&gt; App根组件&lt;/h1&gt;</span><br><span class="line"><span class="xml"><span class="tag">&lt;<span class="name">p</span> <span class="attr">v-color</span>=<span class="string">&quot;&#x27;red&#x27;&quot;</span>&gt;</span>测试<span class="tag">&lt;/<span class="name">p</span>&gt;</span></span></span><br><span class="line"></span><br><span class="line">directives: &#123;</span><br><span class="line">    <span class="comment">// 定义名为 color 的指令，指向一个配置对象</span></span><br><span class="line">    <span class="attr">color</span>: &#123;</span><br><span class="line">      <span class="comment">// 当指令第一次被绑定到元素上的时候，会立刻触发bind函数</span></span><br><span class="line">      <span class="comment">// 形参中的el表示当前指令所绑定的那个DOM对象</span></span><br><span class="line">      <span class="function"><span class="title">bind</span>(<span class="params">el, binding</span>)</span> &#123;</span><br><span class="line">        <span class="built_in">console</span>.log(<span class="string">&#x27;触发了 v-color 的 bind&#x27;</span>);</span><br><span class="line">        <span class="comment">// el.style.color =&#x27;red&#x27;;</span></span><br><span class="line">        el.style.color = binding.value;</span><br><span class="line">        <span class="built_in">console</span>.log(binding);</span><br><span class="line">      &#125;</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;</span><br></pre></td></tr></table></figure></li>
</ol>
<h5 id="7-6-自定义指令-–-update函数（函数简写形式）"><a href="#7-6-自定义指令-–-update函数（函数简写形式）" class="headerlink" title="7-6 自定义指令 – update函数（函数简写形式）"></a>7-6 自定义指令 – update函数（函数简写形式）</h5><ol>
<li> 如果bind 和 update函数中的<strong>逻辑完全相同</strong>，则<strong>对象格式</strong>的自定义指令简写成<strong>函数格式</strong>：</li>
</ol>
   <figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">directives: &#123;</span><br><span class="line">    <span class="comment">//在insert 和 update时， 会触发相同的业务逻辑</span></span><br><span class="line">    <span class="function"><span class="title">color</span>(<span class="params">el, binding</span>)</span> &#123;</span><br><span class="line">        el.style.color = binding.value</span><br><span class="line">    &#125; </span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

   <figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line">directives: &#123;</span><br><span class="line">    <span class="comment">// 定义名为 color 的指令，指向一个配置对象</span></span><br><span class="line">    <span class="attr">color</span>: &#123;</span><br><span class="line">      <span class="comment">// 当指令第一次被绑定到元素上的时候，会立刻触发bind函数</span></span><br><span class="line">      <span class="comment">// 形参中的el表示当前指令所绑定的那个DOM对象</span></span><br><span class="line">      <span class="function"><span class="title">bind</span>(<span class="params">el, binding</span>)</span> &#123;</span><br><span class="line">        <span class="built_in">console</span>.log(<span class="string">&#x27;触发了 v-color 的 bind函数&#x27;</span>);</span><br><span class="line">        <span class="comment">// el.style.color =&#x27;red&#x27;;</span></span><br><span class="line">        el.style.color = binding.value;</span><br><span class="line"></span><br><span class="line">        <span class="built_in">console</span>.log(binding);</span><br><span class="line">      &#125;,</span><br><span class="line">      <span class="comment">// 在DOM更新的时候，会触发update 函数</span></span><br><span class="line">      <span class="function"><span class="title">update</span>(<span class="params">el, binding</span>)</span> &#123;</span><br><span class="line">        <span class="built_in">console</span>.log(<span class="string">&#x27;触发了v-color的update 函数&#x27;</span>);</span><br><span class="line">        el.style.color = binding.value</span><br><span class="line">      &#125;</span><br><span class="line">    &#125;</span><br><span class="line">    </span><br><span class="line">  &#125;</span><br></pre></td></tr></table></figure>

<ol start="2">
<li><p>全局自定义指令需要通过”Vue.directive()”进行声明，示例代码：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">// 参数1： 字符串， 表示全局自定义指令的名字</span></span><br><span class="line"><span class="comment">// 参数2：对象，用来接收指令的参数值</span></span><br><span class="line">Vue.directive(<span class="string">&#x27;color&#x27;</span>, <span class="function"><span class="keyword">function</span>(<span class="params">el, binding</span>)</span>&#123;</span><br><span class="line">    el.style.color = binding.value</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure></li>
</ol>
<h2 id="第八章-eslint-axios-路由"><a href="#第八章-eslint-axios-路由" class="headerlink" title="第八章 eslint + axios + 路由"></a>第八章 eslint + axios + 路由</h2><h5 id="8-1-eslient没学明白"><a href="#8-1-eslient没学明白" class="headerlink" title="8-1 eslient没学明白"></a>8-1 eslient没学明白</h5><ol>
<li><p><img src="https://i.loli.net/2021/09/05/PBgFCaLrbf9niZv.png" alt="17"></p>
</li>
<li><p><strong>没有配置prettier</strong></p>
</li>
</ol>
<h5 id="8-2-axios：-演示axios的基本用法并发现存在的问题"><a href="#8-2-axios：-演示axios的基本用法并发现存在的问题" class="headerlink" title="8-2  axios： 演示axios的基本用法并发现存在的问题"></a>8-2  axios： 演示axios的基本用法并发现存在的问题</h5><ol>
<li> get用法：</li>
</ol>
   <figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line"> &lt;button @click=<span class="string">&quot;getInfo&quot;</span>&gt;发起get请求&lt;/button&gt;</span><br><span class="line"><span class="xml"><span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="javascript"></span></span></span><br><span class="line"><span class="javascript"><span class="xml"><span class="keyword">import</span> axios <span class="keyword">from</span> <span class="string">&#x27;axios&#x27;</span></span></span></span><br><span class="line"><span class="javascript"><span class="xml"><span class="keyword">export</span> <span class="keyword">default</span> &#123;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">  <span class="attr">methods</span>: &#123;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">    <span class="keyword">async</span> <span class="function"><span class="title">getInfo</span>(<span class="params"></span>)</span> &#123;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">      <span class="keyword">const</span> &#123;<span class="attr">data</span>: res&#125; = <span class="keyword">await</span> axios.get(<span class="string">&#x27;http://www.liulongbin.top:3006/api/get&#x27;</span>)</span></span></span><br><span class="line"><span class="javascript"><span class="xml">      <span class="built_in">console</span>.log(res);</span></span></span><br><span class="line"><span class="javascript"><span class="xml">    &#125;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">  &#125;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">&#125;</span></span></span><br><span class="line"><span class="javascript"><span class="xml"></span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span></span><br></pre></td></tr></table></figure>

<ol start="2">
<li><p>post用法：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">&lt;button @click=<span class="string">&quot;postInfo&quot;</span>&gt;发起 POST 请求&lt;/button&gt;</span><br><span class="line"></span><br><span class="line"><span class="xml"><span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="javascript"></span></span></span><br><span class="line"><span class="javascript"><span class="xml"><span class="keyword">import</span> axios <span class="keyword">from</span> <span class="string">&#x27;axios&#x27;</span></span></span></span><br><span class="line"><span class="javascript"><span class="xml"><span class="keyword">export</span> <span class="keyword">default</span> &#123;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">  <span class="attr">methods</span>: &#123;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">    <span class="keyword">async</span> <span class="function"><span class="title">postInfo</span>(<span class="params"></span>)</span>&#123;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">      <span class="keyword">const</span> &#123; <span class="attr">data</span>: res&#125; = <span class="keyword">await</span> axios.post(<span class="string">&#x27;http://www.liulongbin.top:3006/api/post&#x27;</span>,&#123;<span class="attr">name</span>: <span class="string">&#x27;zs&#x27;</span>,<span class="attr">age</span>: <span class="number">20</span>&#125;)</span></span></span><br><span class="line"><span class="javascript"><span class="xml">      <span class="built_in">console</span>.log(res);</span></span></span><br><span class="line"><span class="javascript"><span class="xml">    &#125;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">  &#125;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">&#125;</span></span></span><br><span class="line"><span class="javascript"><span class="xml"></span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span></span><br></pre></td></tr></table></figure></li>
</ol>
<h5 id="8-3-把axios挂载到vue的原型上并配置请求根路径"><a href="#8-3-把axios挂载到vue的原型上并配置请求根路径" class="headerlink" title="8-3 把axios挂载到vue的原型上并配置请求根路径"></a>8-3 把axios挂载到vue的原型上并配置请求根路径</h5><ol>
<li><p>main.js中【缺点： 无法实现API接口的复用，不利于接口的复用】</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> axios <span class="keyword">from</span> <span class="string">&#x27;axios&#x27;</span></span><br><span class="line"></span><br><span class="line"><span class="comment">// axios.defaults.baseURL = &#x27;请求根路径&#x27;, 端口号之前都是请求的根路径</span></span><br><span class="line"><span class="comment">/* 全局配置axios的请求路径 */</span></span><br><span class="line">axios.defaults.baseURL = <span class="string">&#x27;http://www.liulongbin.top:3006&#x27;</span></span><br><span class="line">    <span class="comment">//Vue原型上挂一个共享的成员，不需要每个文件import axios</span></span><br><span class="line">    <span class="comment">/* 把axios 挂载到 Vue.prototype ,供每个.vue 组件使用*/</span></span><br><span class="line">Vue.prototype.$http = axios</span><br><span class="line">    <span class="comment">// 今后， 在每个.vue组件中要发起请求，直接调用 this.$http.xxx</span></span><br><span class="line"></span><br></pre></td></tr></table></figure></li>
<li></li>
</ol>
<h5 id="8-4-路由"><a href="#8-4-路由" class="headerlink" title="8-4 路由"></a>8-4 路由</h5><ol>
<li><p>路由(route) : 就是对应关系</p>
<ul>
<li>地址和组件的对应关系</li>
</ul>
</li>
<li><p>SPA与前端路由</p>
<ul>
<li>前端路由 ： <strong>Hash地址</strong> 与 <strong>组件</strong> 之间的对应关系</li>
<li>前端路由底层的概念就是： 监听哈希地址的变换</li>
</ul>
</li>
<li><p>实现前端路由</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">export</span> <span class="keyword">default</span> &#123;</span><br><span class="line">    <span class="attr">name</span>: <span class="string">&#x27;App&#x27;</span>,</span><br><span class="line">    <span class="function"><span class="title">data</span>(<span class="params"></span>)</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> &#123;</span><br><span class="line">            <span class="comment">// 要展示的组件的名称</span></span><br><span class="line">            <span class="attr">comName</span>: <span class="string">&#x27;Name&#x27;</span></span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></li>
</ol>
<h5 id="8-5-安装和配置路由"><a href="#8-5-安装和配置路由" class="headerlink" title="8-5 安装和配置路由"></a>8-5 安装和配置路由</h5><ol>
<li><p>什么是vue-router</p>
<ul>
<li>vue-router是 vue.js 给出的<strong>路由解决方案</strong>，只能结合vue项目进行使用，能够轻松的管理SPA项目父母中组件的切换</li>
</ul>
</li>
<li><p>vuerouter 的官方文档地址 ： <a target="_blank" rel="noopener" href="https://router.vuejs.org/zh/">https://router.vuejs.org/zh/</a></p>
</li>
<li><ul>
<li>安装 vue-router 包<ul>
<li>命令<code>npm i vue-router@3.5.2 -S</code></li>
</ul>
</li>
<li>创建路由模块</li>
<li>导入并挂载路由模块</li>
<li>声明<strong>路由链接</strong>和<strong>占位符</strong></li>
</ul>
</li>
<li><p> 创建路由模块</p>
</li>
</ol>
<ul>
<li><p>在src 源代码目录下，新建<strong>router/index.js</strong>路由模块，并初始化代码:</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//1. 导入Vue 和VueRouter 的包</span></span><br><span class="line"><span class="keyword">import</span> Vue <span class="keyword">from</span> <span class="string">&#x27;vue&#x27;</span></span><br><span class="line"><span class="keyword">import</span> VueRouter <span class="keyword">from</span> <span class="string">&#x27;vue-router&#x27;</span></span><br><span class="line"></span><br><span class="line"><span class="comment">//2. 调用Vue.use() 函数，把 VueRouter 安装为 Vue 的插件</span></span><br><span class="line">Vue.use(VueRouter)</span><br><span class="line"></span><br><span class="line"><span class="comment">//3. 创建路由的实例对象</span></span><br><span class="line"><span class="keyword">const</span> router = <span class="keyword">new</span> VueRouter()</span><br><span class="line"></span><br><span class="line"><span class="comment">//4. 向外共享路由的实例对象</span></span><br><span class="line"><span class="keyword">export</span> <span class="keyword">default</span> router</span><br></pre></td></tr></table></figure></li>
<li><p>main.js</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> Vue <span class="keyword">from</span> <span class="string">&#x27;vue&#x27;</span></span><br><span class="line"><span class="keyword">import</span> App <span class="keyword">from</span> <span class="string">&#x27;./App.vue&#x27;</span></span><br><span class="line"><span class="keyword">import</span> axios <span class="keyword">from</span> <span class="string">&#x27;axios&#x27;</span></span><br><span class="line"><span class="comment">//导入路由模块，拿到路由的实例对象</span></span><br><span class="line"><span class="keyword">import</span> router <span class="keyword">from</span> <span class="string">&#x27;@/router/index.js&#x27;</span></span><br><span class="line"></span><br><span class="line">Vue.config.productionTip = <span class="literal">false</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">// axios.defaults.baseURL = &#x27;请求根路径&#x27;, 端口号之前都是请求的根路径</span></span><br><span class="line"><span class="comment">/* 全局配置axios的请求路径 */</span></span><br><span class="line">axios.defaults.baseURL = <span class="string">&#x27;http://www.liulongbin.top:3006&#x27;</span></span><br><span class="line">    <span class="comment">//Vue原型上挂一个共享的成员，不需要每个文件import axios</span></span><br><span class="line">    <span class="comment">/* 把axios 挂载到 Vue.prototype ,供每个.vue 组件使用*/</span></span><br><span class="line">Vue.prototype.$http = axios</span><br><span class="line">    <span class="comment">// 今后， 在每个.vue组件中要发起请求，直接调用 this.$http.xxx</span></span><br><span class="line"></span><br><span class="line"><span class="keyword">new</span> Vue(&#123;</span><br><span class="line">    <span class="attr">render</span>: <span class="function"><span class="params">h</span> =&gt;</span> h(App),</span><br><span class="line">    <span class="comment">// 在Vue 项目中， 要想把路由用起来，必须把路由实例对象，通过下面的方式进行挂载</span></span><br><span class="line">    <span class="comment">// router: 路由的实例对象</span></span><br><span class="line">    router</span><br><span class="line">&#125;).$mount(<span class="string">&#x27;#app&#x27;</span>)</span><br></pre></td></tr></table></figure></li>
<li><p>src.router.index.js 就是当前项目的路由模块</p>
</li>
</ul>
<h5 id="8-6-在路由中声明路由的对应关系"><a href="#8-6-在路由中声明路由的对应关系" class="headerlink" title="8-6 在路由中声明路由的对应关系"></a>8-6 在路由中声明路由的对应关系</h5><ol>
<li><p>前端路由的工作方式：</p>
<ul>
<li><p>用户<strong>点击</strong>了页面上的<strong>路由链接</strong></p>
</li>
<li><p>导致了<strong>URL 地址栏</strong>中的Hash值发生了变化</p>
</li>
<li><p><strong>前端路由监听到了Hash地址的变化</strong></p>
</li>
<li><p>前端路由把当前Hash地址对应的组件渲染到浏览器中</p>
<p><img src="https://i.loli.net/2021/09/06/chXWEwYoefNbxC3.png" alt="18"></p>
</li>
</ul>
</li>
<li><p>路由重定向：</p>
<ul>
<li>指的是： 用户在访问<strong>地址A</strong>的时候，强制用户跳转到地址C，从而展示特定的组件页面。</li>
<li>通过路由规则的<strong>redirect</strong>属性，指定一个新的路由地址，可以很方便地设置路由重定向</li>
</ul>
</li>
</ol>
<h5 id="8-7-嵌套路由"><a href="#8-7-嵌套路由" class="headerlink" title="8-7 嵌套路由"></a>8-7 嵌套路由</h5><ol>
<li><p><img src="https://i.loli.net/2021/09/06/Eb2DRMg9Bsz3TPp.png" alt="img"></p>
</li>
<li><p>通过路由实现组件的嵌套展示：</p>
<ul>
<li>模板内容中又有自己路由链接</li>
<li>点击子级路由链接显示<strong>子级模板内容</strong></li>
</ul>
</li>
<li><p>通过children 属性声明 <strong>子路由规则</strong></p>
</li>
<li><p>默认子路由</p>
<ul>
<li><p>Right.vue中</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">&lt;router-link to=<span class="string">&quot;/right/&quot;</span>&gt;tab1&lt;/router-link&gt;</span><br><span class="line"> <span class="xml"><span class="tag">&lt;<span class="name">router-link</span> <span class="attr">to</span>=<span class="string">&quot;/right/tab2&quot;</span>&gt;</span>tab2<span class="tag">&lt;/<span class="name">router-link</span>&gt;</span></span></span><br><span class="line">   &lt;hr&gt;</span><br><span class="line">   <span class="xml"><span class="tag">&lt;<span class="name">router-view</span>&gt;</span><span class="tag">&lt;/<span class="name">router-view</span>&gt;</span></span></span><br></pre></td></tr></table></figure></li>
<li><p>index.js中</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">routes: [</span><br><span class="line">       &#123; <span class="attr">path</span>: <span class="string">&#x27;/home&#x27;</span>, <span class="attr">component</span>: Home &#125;,</span><br><span class="line">       &#123; <span class="attr">path</span>: <span class="string">&#x27;/left&#x27;</span>, <span class="attr">component</span>: Left &#125;,</span><br><span class="line">       &#123;</span><br><span class="line">           <span class="attr">path</span>: <span class="string">&#x27;/right&#x27;</span>,</span><br><span class="line">           <span class="attr">component</span>: Right,</span><br><span class="line">           <span class="comment">//路由的重定向，重指定地址跳到另一个新地址</span></span><br><span class="line">           <span class="comment">// redirect: &#x27;/about/tab1&#x27;,</span></span><br><span class="line">           <span class="attr">children</span>: [</span><br><span class="line">               <span class="comment">//子路由规则</span></span><br><span class="line">               <span class="comment">// 默认子路由：如果 children 数组中，某个路由规则的path值为空字符串，则这个 路由规则，叫做&quot;默认子路由&quot;</span></span><br><span class="line">               &#123; <span class="attr">path</span>: <span class="string">&#x27;&#x27;</span>, <span class="attr">component</span>: Tab1 &#125;,</span><br><span class="line">               &#123; <span class="attr">path</span>: <span class="string">&#x27;tab2&#x27;</span>, <span class="attr">component</span>: Tab2 &#125;,</span><br><span class="line">           ]</span><br><span class="line">       &#125;</span><br><span class="line">   ]</span><br></pre></td></tr></table></figure></li>
</ul>
</li>
</ol>
<h5 id="8-8-动态路由-–-基本用法"><a href="#8-8-动态路由-–-基本用法" class="headerlink" title="8-8 动态路由 – 基本用法"></a>8-8 动态路由 – 基本用法</h5><blockquote>
<p>之前的路由规则的复用性差</p>
</blockquote>
<ol>
<li><p>动态路由匹配 ： 把Hash地址中<strong>可变的部分</strong>定义为<strong>参考项</strong>，从而<strong>提高路由规则的复用性</strong></p>
<ul>
<li><p>在vue-router中把英文的冒号(:)来定义路由的参数项，示例代码：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//路由中的动态参数以 : 进行声明,冒号后面的是动态参数的名称</span></span><br><span class="line">&#123;<span class="attr">path</span>: <span class="string">&#x27;/movie/:id&#x27;</span>,<span class="attr">component</span>:Movie&#125;</span><br><span class="line"><span class="comment">//将一下3个路由规则，合并成一个，提高了路由规则的复用性</span></span><br><span class="line">&#123;<span class="attr">path</span>: <span class="string">&#x27;/movie/1&#x27;</span>,<span class="attr">component</span>: Movie&#125;</span><br><span class="line">&#123;<span class="attr">path</span>: <span class="string">&#x27;/movie/2&#x27;</span>,<span class="attr">component</span>: Movie&#125;</span><br><span class="line">&#123;<span class="attr">path</span>: <span class="string">&#x27;/movie/3&#x27;</span>,<span class="attr">component</span>: Movie&#125;</span><br></pre></td></tr></table></figure></li>
</ul>
</li>
<li><p>动态路由—- 为路由规则开启props传参</p>
<ul>
<li>app2.vue中</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">&lt;router-link to=<span class="string">&quot;/left/3&quot;</span>&gt;左边&lt;/router-link&gt;</span><br><span class="line"><span class="xml"><span class="tag">&lt;<span class="name">router-link</span> <span class="attr">to</span>=<span class="string">&quot;/left/1&quot;</span>&gt;</span>左边<span class="tag">&lt;/<span class="name">router-link</span>&gt;</span></span></span><br><span class="line"><span class="xml"><span class="tag">&lt;<span class="name">router-link</span> <span class="attr">to</span>=<span class="string">&quot;/left/2&quot;</span>&gt;</span>左边<span class="tag">&lt;/<span class="name">router-link</span>&gt;</span></span></span><br><span class="line"><span class="xml"><span class="tag">&lt;<span class="name">router-view</span>&gt;</span><span class="tag">&lt;/<span class="name">router-view</span>&gt;</span></span></span><br></pre></td></tr></table></figure>



<ul>
<li><p>Left中</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">&lt;h3&gt;Left组件 -- &#123;&#123; $route.params.mid &#125;&#125; -- &#123;&#123; mid &#125;&#125;&lt;/h3&gt;</span><br><span class="line"></span><br><span class="line"><span class="xml"><span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="javascript"></span></span></span><br><span class="line"><span class="javascript"><span class="xml"><span class="keyword">export</span> <span class="keyword">default</span> &#123;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">  <span class="attr">name</span>:<span class="string">&#x27;Left&#x27;</span>,</span></span></span><br><span class="line"><span class="javascript"><span class="xml">  <span class="attr">props</span>: [<span class="string">&#x27;mid&#x27;</span>],</span></span></span><br><span class="line"><span class="javascript"><span class="xml">  <span class="attr">methods</span>: &#123;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">    <span class="keyword">async</span> <span class="function"><span class="title">getInfo</span>(<span class="params"></span>)</span> &#123;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">      <span class="keyword">const</span> &#123;<span class="attr">data</span>: res&#125; = <span class="keyword">await</span> <span class="built_in">this</span>.$http.get(<span class="string">&#x27;api/get&#x27;</span>)</span></span></span><br><span class="line"><span class="javascript"><span class="xml">      <span class="built_in">console</span>.log(res);</span></span></span><br><span class="line"><span class="javascript"><span class="xml">    &#125;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">  &#125;</span></span></span><br><span class="line"><span class="javascript"><span class="xml">&#125;</span></span></span><br><span class="line"><span class="javascript"><span class="xml"></span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span></span><br></pre></td></tr></table></figure></li>
<li><p>index.js中</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&#123; <span class="attr">path</span>: <span class="string">&#x27;/left/:mid&#x27;</span>, <span class="attr">component</span>: Left, <span class="attr">props</span>: <span class="literal">true</span> &#125;,</span><br></pre></td></tr></table></figure></li>
</ul>
</li>
<li><p>动态路由—- 为路由规则开启props传参</p>
<ul>
<li>先给index.js 路由规则添加props</li>
<li>再</li>
</ul>
</li>
</ol>
<h5 id="8-9-拓展query和fullPath"><a href="#8-9-拓展query和fullPath" class="headerlink" title="8-9 拓展query和fullPath"></a>8-9 拓展query和fullPath</h5><ol>
<li>注意： 再hash 地址中， /后面的参数项，叫做“路径参数”</li>
</ol>
<ul>
<li>在路由“参数对象”中，需要使用this.$route.params 来访问路径参数</li>
</ul>
<ol start="2">
<li>注意2： 在hash地址中， ？后面的参数项，叫做“查询参数”<ul>
<li>在路由参数对象中，需要使用 this.$route.query 来访问查询参数</li>
</ul>
</li>
<li> 注意3. 在this.$route 中，path 只是路径部分，full Path是完整的地址</li>
</ol>
<h2 id="第九章-导航-案例（由taken哦！！）"><a href="#第九章-导航-案例（由taken哦！！）" class="headerlink" title="第九章 导航+ 案例（由taken哦！！）"></a>第九章 导航+ 案例（由taken哦！！）</h2><h5 id="9-1-编程式导航跳转-–-push，replace，go"><a href="#9-1-编程式导航跳转-–-push，replace，go" class="headerlink" title="9-1 编程式导航跳转 – push，replace，go"></a>9-1 编程式导航跳转 – push，replace，go</h5><ol>
<li>声明式导航<ul>
<li>在浏览器中，点击链接实现导航的方式，叫做<strong>声明式导航</strong></li>
<li>例如： <ul>
<li>普通网页中点击<a>链接，vue项目中点击<router-link>都属于声明式导航</li>
</ul>
</li>
</ul>
</li>
<li>编程式导航<ul>
<li>在浏览器中，调用API方法 实现导航的方式，叫做<strong>编程式导航</strong></li>
<li>例如： 普通网页中调用location.href 跳转到新页面的方式，属编程式导航</li>
</ul>
</li>
<li>vue-router中的编程式导航 API<ul>
<li><code>this.$router.push(&#39;hash地址&#39;)</code><ul>
<li>跳转到指定 的hash地址，并<strong>增加</strong>一条历史记录</li>
</ul>
</li>
<li><code>this.$router.replace(&#39;hash地址&#39;)</code><ul>
<li>跳转到指定的hash地址，并替换掉当前的历史记录</li>
</ul>
</li>
<li><code>this.$router.go(数值n)</code><ul>
<li>调用<code>this.router.go()</code>方法，可以在浏览器中前进和后退。示例代码：</li>
<li></li>
</ul>
</li>
</ul>
</li>
<li>$router.go的简化方法：<ul>
<li>实际开发中，一般只用前进和后退一层页面。因此vue-router 提供了两种便携方法<ul>
<li><code>$router.back()</code> : 后退到上一个页面</li>
<li><code>$router.forward()</code>： 前进到下一个页面</li>
</ul>
</li>
</ul>
</li>
</ol>
<h5 id="9-2-导航守卫"><a href="#9-2-导航守卫" class="headerlink" title="9-2 导航守卫"></a>9-2 导航守卫</h5><ol>
<li><p>导航守卫 ： 可以控制路由的访问权限</p>
<p><img src="D:/Front-end/md%E7%AC%94%E8%AE%B0/vue/vue/pc/20.png" alt="20"></p>
</li>
<li><p>全局前置守卫</p>
<ul>
<li><p>每次发生路由的<strong>导航跳转</strong>时，都会触发<strong>全局前置守卫</strong>，在全局前置守卫中，程序员可以对每个路由进行<strong>访问权限</strong>的控制</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">// 创建路由实例对象</span></span><br><span class="line"><span class="keyword">const</span> router = <span class="keyword">new</span> VueRouter(&#123;...&#125;)</span><br><span class="line"></span><br><span class="line"><span class="comment">//调用路由实例对象的 beforeEach 方法，即可声明“全局前置守卫”</span></span><br><span class="line"><span class="comment">// 每次发生路由导航跳转时候，都会自动触发 fn 这个“回调函数”</span></span><br><span class="line">router.beforeEach(fn)</span><br></pre></td></tr></table></figure></li>
<li><p>全局前置守卫 的回调函数中接收3个形参，格式：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//创建路由实例对象</span></span><br><span class="line"><span class="keyword">const</span> router =<span class="keyword">new</span> VueRouter(&#123;&#125;)</span><br><span class="line"></span><br><span class="line"><span class="comment">// 全局前置守卫</span></span><br><span class="line">router.beforeEach(<span class="function">(<span class="params">to,<span class="keyword">from</span>,next</span>) =&gt;</span>&#123;</span><br><span class="line">    <span class="comment">// to时将要访问的路由的信息对象</span></span><br><span class="line">    <span class="comment">// from 是将要离开的路由的信息对象</span></span><br><span class="line">    <span class="comment">// next是一个函数，调用next() 表示函数，调用 next() 表示放行，允许这次路由导航 </span></span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure></li>
</ul>
</li>
<li><p>next的三种调用方式</p>
<ul>
<li>参考示意图，分析next函数的3中调用方式最终结果：</li>
<li><img src="https://i.loli.net/2021/09/06/pSr2udavhtHmgjn.png" alt="21"></li>
</ul>
</li>
<li><p>导航守卫— 控制访问权限</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><span class="line">router.beforeEach(<span class="function"><span class="keyword">function</span>(<span class="params">to, <span class="keyword">from</span>, next</span>) </span>&#123;</span><br><span class="line">    <span class="comment">//next函数表示放行的意思</span></span><br><span class="line">    next()</span><br><span class="line"></span><br><span class="line">    <span class="comment">//1. 拿到用户访问的hash地址</span></span><br><span class="line">    <span class="comment">// 2. 判断hash地址是否等于 /main</span></span><br><span class="line">    <span class="comment">//2.1 如果等于 /main,证明需要登陆之后，才能访问成功</span></span><br><span class="line">    <span class="comment">//2.2 如果不等于/main,则不需要登录，直接放行next()</span></span><br><span class="line">    <span class="comment">//3. 如果访问的地址是/main, 则需要读取localStorage中的token值</span></span><br><span class="line">    <span class="comment">// 3.1 如果由token，则放行</span></span><br><span class="line">    <span class="comment">//3.2 如果没有 token，则强制跳转到/login 登录页</span></span><br><span class="line">    <span class="keyword">if</span> (to.path === <span class="string">&#x27;/mian&#x27;</span>) &#123;</span><br><span class="line">        <span class="comment">//要访问后台主页，需要判断是否有token  </span></span><br><span class="line">        <span class="keyword">const</span> token = <span class="built_in">localStorage</span>.getItem(<span class="string">&#x27;token&#x27;</span>)</span><br><span class="line">        <span class="keyword">if</span> (token) &#123;</span><br><span class="line">            next()</span><br><span class="line">        &#125; <span class="keyword">else</span> &#123;</span><br><span class="line">            <span class="comment">//没有登录，强制跳转</span></span><br><span class="line">            next(<span class="string">&#x27;/login&#x27;</span>)</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure></li>
</ol>
<h5 id="9-3-案例-—-安装和配置路由，基于路由渲染登录组件"><a href="#9-3-案例-—-安装和配置路由，基于路由渲染登录组件" class="headerlink" title="9-3 案例 — 安装和配置路由，基于路由渲染登录组件"></a>9-3 案例 — 安装和配置路由，基于路由渲染登录组件</h5>
      

      
        <div class="page-reward">
          <a href="javascript:;" class="page-reward-btn tooltip-top">
            <div class="tooltip tooltip-east">
            <span class="tooltip-item">
              赏
            </span>
            <span class="tooltip-content">
              <span class="tooltip-text">
                <span class="tooltip-inner">
                  <p class="reward-p"><i class="icon icon-quo-left"></i>谢谢你请我吃糖果<i class="icon icon-quo-right"></i></p>
                  <div class="reward-box">
                    
                    <div class="reward-box-item">
                      <img class="reward-img" src="/assets/z.jpg">
                      <span class="reward-type">支付宝</span>
                    </div>
                    
                    
                    <div class="reward-box-item">
                      <img class="reward-img" src="/assets/v.png">
                      <span class="reward-type">微信</span>
                    </div>
                    
                  </div>
                </span>
              </span>
            </span>
          </div>
          </a>
        </div>
      
    </div>
    <div class="article-info article-info-index">
      
      
      

      

      
        
<div class="share-btn share-icons tooltip-left">
  <div class="tooltip tooltip-east">
    <span class="tooltip-item">
      <a href="javascript:;" class="share-sns share-outer">
        <i class="icon icon-share"></i>
      </a>
    </span>
    <span class="tooltip-content">
      <div class="share-wrap">
        <div class="share-icons">
          <a class="weibo share-sns" href="javascript:;" data-type="weibo">
            <i class="icon icon-weibo"></i>
          </a>
          <a class="weixin share-sns wxFab" href="javascript:;" data-type="weixin">
            <i class="icon icon-weixin"></i>
          </a>
          <a class="qq share-sns" href="javascript:;" data-type="qq">
            <i class="icon icon-qq"></i>
          </a>
          <a class="douban share-sns" href="javascript:;" data-type="douban">
            <i class="icon icon-douban"></i>
          </a>
          <a class="qzone share-sns" href="javascript:;" data-type="qzone">
            <i class="icon icon-qzone"></i>
          </a>
          <a class="facebook share-sns" href="javascript:;" data-type="facebook">
            <i class="icon icon-facebook"></i>
          </a>
          <a class="twitter share-sns" href="javascript:;" data-type="twitter">
            <i class="icon icon-twitter"></i>
          </a>
          <a class="google share-sns" href="javascript:;" data-type="google">
            <i class="icon icon-google"></i>
          </a>
        </div>
      </div>
    </span>
  </div>
</div>

<div class="page-modal wx-share js-wx-box">
    <a class="close js-modal-close" href="javascript:;"><i class="icon icon-close"></i></a>
    <p>扫一扫，分享到微信</p>
    <div class="wx-qrcode">
      <img src="//pan.baidu.com/share/qrcode?url=http://hannah-bingo.github.io/2021/08/30/E_vue2/" alt="微信分享二维码">
    </div>
</div>

<div class="mask js-mask"></div>
      
      <div class="clearfix"></div>
    </div>
  </div>
</article>

  
<nav id="article-nav">
  
    <a href="/2021/08/30/E_ES6%E6%A8%A1%E5%9D%97%E5%8C%96+Promise+EventLoop+API/" id="article-nav-newer" class="article-nav-link-wrap">
      <i class="icon-circle-left"></i>
      <div class="article-nav-title">
        
          ES6模块化+Promise+EventLoop+API
        
      </div>
    </a>
  
  
    <a href="/2021/08/25/B_js/" id="article-nav-older" class="article-nav-link-wrap">
      <div class="article-nav-title">js</div>
      <i class="icon-circle-right"></i>
    </a>
  
</nav>


<aside class="wrap-side-operation">
    <div class="mod-side-operation">
        
        <div class="jump-container" id="js-jump-container" style="display:none;">
            <a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
                <i class="icon-font icon-back"></i>
            </a>
            <div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
                <i class="icon-font icon-plane jump-plane"></i>
            </div>
        </div>
        
        
        <div class="toc-container tooltip-left">
            <i class="icon-font icon-category"></i>
            <div class="tooltip tooltip-east">
                <span class="tooltip-item">
                </span>
                <span class="tooltip-content">
                    <div class="toc-article">
                    <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%AC%AC%E4%B8%80%E7%AB%A0-%E5%89%8D%E7%AB%AF%E5%B7%A5%E7%A8%8B%E5%8C%96%E4%B8%8Ewebpack"><span class="toc-number">1.</span> <span class="toc-text">第一章 前端工程化与webpack</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#1-1-webpack%E7%9A%84%E5%AE%9A%E4%B9%89"><span class="toc-number">1.0.0.1.</span> <span class="toc-text">1-1 webpack的定义</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#1-2-webpack%E7%9A%84%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8"><span class="toc-number">1.0.0.2.</span> <span class="toc-text">1-2 webpack的基本使用</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#1-5-%E4%BA%86%E8%A7%A3-html-webpack-plugin%E7%9A%84%E7%89%B9%E6%80%A7-amp-%E4%BA%86%E8%A7%A3devServer%E4%B8%AD%E5%B8%B8%E7%94%A8%E7%9A%84%E9%80%89%E9%A1%B9"><span class="toc-number">1.0.0.3.</span> <span class="toc-text">1-5 了解 html-webpack-plugin的特性 &amp; 了解devServer中常用的选项</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#1-6-webpack%E4%B8%AD%E7%9A%84loader"><span class="toc-number">1.0.0.4.</span> <span class="toc-text">1-6 webpack中的loader</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#1-7-%E6%89%93%E5%8C%85%E5%A4%84%E7%90%86css%E4%BB%A5%E5%8F%8Aless%E6%96%87%E4%BB%B6%E8%B6%85%E4%B8%A5%E9%87%8D%E9%97%AE%E9%A2%98"><span class="toc-number">1.0.0.5.</span> <span class="toc-text">1-7 打包处理css以及less文件超严重问题</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#1-8-base64%E7%9A%84%E5%9B%BE%E7%89%87%E4%BC%98%E7%BC%BA%E7%82%B9"><span class="toc-number">1.0.0.6.</span> <span class="toc-text">1-8 base64的图片优缺点</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#1-9-%E6%BC%94%E7%A4%BA%E5%9B%BE%E7%89%87loader%E5%8A%A0%E8%BD%BD%E7%9A%84%E9%97%AE%E9%A2%98%E3%80%90%E4%BE%9D%E6%97%A7%E6%98%AFbigbug%E3%80%91"><span class="toc-number">1.0.0.7.</span> <span class="toc-text">1-9 演示图片loader加载的问题【依旧是bigbug】</span></a></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%AC%AC%E4%BA%8C%E7%AB%A0-%E4%BA%86%E8%A7%A3vue%E6%98%AF%E4%BB%80%E4%B9%88"><span class="toc-number">2.</span> <span class="toc-text">第二章 了解vue是什么</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#2-1-Vue%E7%AE%80%E4%BB%8B"><span class="toc-number">2.0.0.1.</span> <span class="toc-text">2-1 Vue简介</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#2-2-MVVM"><span class="toc-number">2.0.0.2.</span> <span class="toc-text">2-2 MVVM</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#2-3-vue%E7%89%88%E6%9C%AC"><span class="toc-number">2.0.0.3.</span> <span class="toc-text">2-3 vue版本</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#2-4-vue%E7%9A%84%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8%E2%80%94-%E5%86%85%E5%AE%B9%E6%B8%B2%E6%9F%93%E6%8C%87%E4%BB%A4"><span class="toc-number">2.0.0.4.</span> <span class="toc-text">2-4 vue的基本使用— 内容渲染指令</span></a></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#textarea"><span class="toc-number">3.</span> <span class="toc-text">textarea</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#2-5-el%E5%B1%9E%E6%80%A7%E7%9A%84%E4%BD%BF%E7%94%A8%E6%B3%A8%E6%84%8F%E7%82%B9%E4%BB%A5%E5%8F%8A%E4%BD%BF%E7%94%A8javscript-%E8%A1%A8%E8%BE%BE%E5%BC%8F"><span class="toc-number">3.0.0.1.</span> <span class="toc-text">2-5 el属性的使用注意点以及使用javscript 表达式</span></a></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%AC%AC%E4%B8%89%E7%AB%A0-%E8%BF%87%E6%BB%A4%E5%99%A8-amp-%E4%BE%A6%E5%90%AC%E5%99%A8-amp-%E8%AE%A1%E7%AE%97%E5%B1%9E%E6%80%A7"><span class="toc-number">4.</span> <span class="toc-text">第三章 过滤器 &amp;侦听器 &amp; 计算属性</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#3-1-%E8%BF%87%E6%BB%A4%E5%99%A8%E7%9A%84%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95"><span class="toc-number">4.0.0.1.</span> <span class="toc-text">3-1 过滤器的基本用法</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#3-2-%E7%A7%81%E6%9C%89%E8%BF%87%E6%BB%A4%E5%99%A8%E5%92%8C%E5%85%A8%E5%B1%80%E8%BF%87%E6%BB%A4%E5%99%A8"><span class="toc-number">4.0.0.2.</span> <span class="toc-text">3-2 私有过滤器和全局过滤器</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#1-3-%E8%BF%87%E6%BB%A4%E5%99%A8%E7%9A%84%E5%85%B6%E4%BB%96%E7%94%A8%E6%B3%95"><span class="toc-number">4.0.0.3.</span> <span class="toc-text">1-3 过滤器的其他用法</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#3-4-%E4%BA%86%E8%A7%A3%E4%BE%A6%E5%90%AC%E5%99%A8%E5%9F%BA%E6%9C%AC%E7%9A%84%E8%AF%AD%E6%B3%95%E6%A0%BC%E5%BC%8F"><span class="toc-number">4.0.0.4.</span> <span class="toc-text">3-4 了解侦听器基本的语法格式</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#3-5-%E8%AE%A1%E7%AE%97%E5%B1%9E%E6%80%A7-amp-axios"><span class="toc-number">4.0.0.5.</span> <span class="toc-text">3-5 计算属性 &amp; axios</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#3-6-%E5%9F%BA%E4%BA%8Eaxios-get%E5%92%8Caxios-post%E5%8F%91%E8%B5%B7%E8%AF%B7%E6%B1%82"><span class="toc-number">4.0.0.6.</span> <span class="toc-text">3-6 基于axios.get和axios.post发起请求</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#4-4-%E4%BD%BF%E7%94%A8%E7%BB%84%E4%BB%B6%E7%9A%84%E4%B8%89%E4%B8%AA%E6%AD%A5%E9%AA%A4"><span class="toc-number">4.0.0.7.</span> <span class="toc-text">4-4 使用组件的三个步骤</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#4-5-%E7%A7%81%E6%9C%89%E5%AD%90%E7%BB%84%E4%BB%B6%E5%92%8C%E5%85%AC%E6%9C%89%E7%BB%84%E4%BB%B6"><span class="toc-number">4.0.0.8.</span> <span class="toc-text">4-5 私有子组件和公有组件</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#4-6-%E4%B8%BAcount%E7%BB%84%E4%BB%B6%E5%A3%B0%E6%98%8Eprops%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B1%9E%E6%80%A7"><span class="toc-number">4.0.0.9.</span> <span class="toc-text">4-6  为count组件声明props自定义属性</span></a></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%AC%AC%E4%BA%94%E7%AB%A0-%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F%E3%80%90%E6%88%91%E4%B8%8D%E4%BC%9A%E3%80%91%EF%BC%8B%E7%88%B6%E5%90%91%E5%AD%90%E4%BC%A0%E5%80%BC-%E5%85%84%E5%BC%9F%E4%BC%A0%E5%80%BC"><span class="toc-number">5.</span> <span class="toc-text">第五章  生命周期【我不会】＋父向子传值+兄弟传值</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#5-1-%E6%A0%B7%E5%BC%8F%E5%86%B2%E7%AA%81-%E2%80%93-%E4%BA%86%E8%A7%A3scoped%E7%9A%84%E4%BD%BF%E7%94%A8%E5%92%8C%E5%BA%95%E5%B1%82%E5%AE%9E%E7%8E%B0%E5%8E%9F%E7%90%86"><span class="toc-number">5.0.0.1.</span> <span class="toc-text">5-1 样式冲突 – 了解scoped的使用和底层实现原理</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#5-2-vue%E7%9A%84%E5%AE%9E%E4%BE%8B%E5%AF%B9%E8%B1%A1"><span class="toc-number">5.0.0.2.</span> <span class="toc-text">5-2  vue的实例对象</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#5-3-%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F%E5%92%8C%E6%95%B0%E6%8D%AE%E5%85%B1%E4%BA%AB"><span class="toc-number">5.0.0.3.</span> <span class="toc-text">5-3 生命周期和数据共享</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#5-4-%E7%88%B6%E4%B9%A1%E5%AD%90%E4%BC%A0%E5%80%BC-%E2%80%93-%E4%BD%BF%E7%94%A8%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B1%9E%E6%80%A7"><span class="toc-number">5.0.0.4.</span> <span class="toc-text">5-4 父乡子传值 – 使用自定义属性</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#5-5-%E5%AD%90%E5%90%91%E7%88%B6%E4%BC%A0%E5%80%BC-%E2%80%93-%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BA%8B%E4%BB%B6%E3%80%90%E4%BD%A0%E4%B8%8D%E4%BC%9A%E5%93%A6%EF%BC%81%EF%BC%81%EF%BC%81%E8%BF%99%E5%9B%BE%E5%8F%AF%E8%83%BD%E9%83%BD%E6%98%AF%E9%94%99%E7%9A%84%E3%80%91"><span class="toc-number">5.0.0.5.</span> <span class="toc-text">5-5 子向父传值 – 自定义事件【你不会哦！！！这图可能都是错的】</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#5-6-%E5%85%84%E5%BC%9F%E7%BB%84%E4%BB%B6%E4%B9%8B%E9%97%B4%E7%9A%84%E6%95%B0%E6%8D%AE%E5%85%B1%E4%BA%AB%E3%80%90%E6%BC%94%E7%A4%BAEventBus%E7%9A%84%E4%BD%BF%E7%94%A8%E3%80%91"><span class="toc-number">5.0.0.6.</span> <span class="toc-text">5-6 兄弟组件之间的数据共享【演示EventBus的使用】</span></a></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%AC%AC%E5%85%AD%E7%AB%A0-ref%E6%8E%A7%E5%88%B6DOM%E5%85%83%E7%B4%A0%E4%BB%A5%E5%8F%8A%E8%B4%AD%E7%89%A9%E8%BD%A6%E6%A1%88%E4%BE%8B%E3%80%90%E9%9A%BE%E5%88%B0%E5%90%90%E8%A1%80%E3%80%91"><span class="toc-number">6.</span> <span class="toc-text">第六章  ref控制DOM元素以及购物车案例【难到吐血】</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#6-1-%E4%BD%BF%E7%94%A8ref%E5%BA%94%E7%94%A8DOM%E5%85%83%E7%B4%A0"><span class="toc-number">6.0.0.1.</span> <span class="toc-text">6-1 使用ref应用DOM元素</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#6-3-%E8%B4%AD%E7%89%A9%E8%BD%A6-%E6%A1%88%E4%BE%8B%E3%80%90again%EF%BC%8C%E5%BE%88%E9%87%8D%E8%A6%81%E5%95%8A%EF%BC%81%EF%BC%81%EF%BC%81%E3%80%91"><span class="toc-number">6.0.0.2.</span> <span class="toc-text">6-3 购物车 案例【again，很重要啊！！！】</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#6-4-%E8%B4%AD%E7%89%A9%E8%BD%A6%E6%A1%88%E4%BE%8B%EF%BC%9A-%E5%AF%BC%E5%85%A5%E3%80%81%E6%B3%A8%E5%86%8C%E3%80%81%E4%BD%BF%E7%94%A8Header%E7%BB%84%E4%BB%B6"><span class="toc-number">6.0.0.3.</span> <span class="toc-text">6-4 购物车案例： 导入、注册、使用Header组件</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#6-5-%E8%B4%AD%E7%89%A9%E8%BD%A6%E6%A1%88%E4%BE%8B%E2%80%93-%E4%B8%BAGoods%E7%BB%84%E4%BB%B6%E5%B0%81%E8%A3%85title%E5%92%8Cpic%E5%B1%9E%E6%80%A7"><span class="toc-number">6.0.0.4.</span> <span class="toc-text">6-5 购物车案例– 为Goods组件封装title和pic属性</span></a></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%AC%AC%E4%B8%83%E7%AB%A0-%E5%8A%A8%E6%80%81%E7%BB%84%E4%BB%B6-amp-%E6%8F%92%E6%A7%BD-amp-%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8C%87%E4%BB%A4"><span class="toc-number">7.</span> <span class="toc-text">第七章 动态组件 &amp; 插槽 &amp; 自定义指令</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#7-1"><span class="toc-number">7.0.0.1.</span> <span class="toc-text">7-1</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#7-2-keep-alive"><span class="toc-number">7.0.0.2.</span> <span class="toc-text">7-2 keep-alive</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#7-4-%E6%8F%92%E6%A7%BD%E3%80%90%E6%B2%A1%E6%9C%89%E6%94%B9%E4%BA%86%E6%9C%80%E5%90%8E%E7%9A%84%E6%A1%88%E4%BE%8B%E3%80%91"><span class="toc-number">7.0.0.3.</span> <span class="toc-text">7-4 插槽【没有改了最后的案例】</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#7-5-%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8C%87%E4%BB%A4"><span class="toc-number">7.0.0.4.</span> <span class="toc-text">7-5 自定义指令</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#7-6-%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8C%87%E4%BB%A4-%E2%80%93-update%E5%87%BD%E6%95%B0%EF%BC%88%E5%87%BD%E6%95%B0%E7%AE%80%E5%86%99%E5%BD%A2%E5%BC%8F%EF%BC%89"><span class="toc-number">7.0.0.5.</span> <span class="toc-text">7-6 自定义指令 – update函数（函数简写形式）</span></a></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%AC%AC%E5%85%AB%E7%AB%A0-eslint-axios-%E8%B7%AF%E7%94%B1"><span class="toc-number">8.</span> <span class="toc-text">第八章 eslint + axios + 路由</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#8-1-eslient%E6%B2%A1%E5%AD%A6%E6%98%8E%E7%99%BD"><span class="toc-number">8.0.0.1.</span> <span class="toc-text">8-1 eslient没学明白</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#8-2-axios%EF%BC%9A-%E6%BC%94%E7%A4%BAaxios%E7%9A%84%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95%E5%B9%B6%E5%8F%91%E7%8E%B0%E5%AD%98%E5%9C%A8%E7%9A%84%E9%97%AE%E9%A2%98"><span class="toc-number">8.0.0.2.</span> <span class="toc-text">8-2  axios： 演示axios的基本用法并发现存在的问题</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#8-3-%E6%8A%8Aaxios%E6%8C%82%E8%BD%BD%E5%88%B0vue%E7%9A%84%E5%8E%9F%E5%9E%8B%E4%B8%8A%E5%B9%B6%E9%85%8D%E7%BD%AE%E8%AF%B7%E6%B1%82%E6%A0%B9%E8%B7%AF%E5%BE%84"><span class="toc-number">8.0.0.3.</span> <span class="toc-text">8-3 把axios挂载到vue的原型上并配置请求根路径</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#8-4-%E8%B7%AF%E7%94%B1"><span class="toc-number">8.0.0.4.</span> <span class="toc-text">8-4 路由</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#8-5-%E5%AE%89%E8%A3%85%E5%92%8C%E9%85%8D%E7%BD%AE%E8%B7%AF%E7%94%B1"><span class="toc-number">8.0.0.5.</span> <span class="toc-text">8-5 安装和配置路由</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#8-6-%E5%9C%A8%E8%B7%AF%E7%94%B1%E4%B8%AD%E5%A3%B0%E6%98%8E%E8%B7%AF%E7%94%B1%E7%9A%84%E5%AF%B9%E5%BA%94%E5%85%B3%E7%B3%BB"><span class="toc-number">8.0.0.6.</span> <span class="toc-text">8-6 在路由中声明路由的对应关系</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#8-7-%E5%B5%8C%E5%A5%97%E8%B7%AF%E7%94%B1"><span class="toc-number">8.0.0.7.</span> <span class="toc-text">8-7 嵌套路由</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#8-8-%E5%8A%A8%E6%80%81%E8%B7%AF%E7%94%B1-%E2%80%93-%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95"><span class="toc-number">8.0.0.8.</span> <span class="toc-text">8-8 动态路由 – 基本用法</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#8-9-%E6%8B%93%E5%B1%95query%E5%92%8CfullPath"><span class="toc-number">8.0.0.9.</span> <span class="toc-text">8-9 拓展query和fullPath</span></a></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%AC%AC%E4%B9%9D%E7%AB%A0-%E5%AF%BC%E8%88%AA-%E6%A1%88%E4%BE%8B%EF%BC%88%E7%94%B1taken%E5%93%A6%EF%BC%81%EF%BC%81%EF%BC%89"><span class="toc-number">9.</span> <span class="toc-text">第九章 导航+ 案例（由taken哦！！）</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#9-1-%E7%BC%96%E7%A8%8B%E5%BC%8F%E5%AF%BC%E8%88%AA%E8%B7%B3%E8%BD%AC-%E2%80%93-push%EF%BC%8Creplace%EF%BC%8Cgo"><span class="toc-number">9.0.0.1.</span> <span class="toc-text">9-1 编程式导航跳转 – push，replace，go</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#9-2-%E5%AF%BC%E8%88%AA%E5%AE%88%E5%8D%AB"><span class="toc-number">9.0.0.2.</span> <span class="toc-text">9-2 导航守卫</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#9-3-%E6%A1%88%E4%BE%8B-%E2%80%94-%E5%AE%89%E8%A3%85%E5%92%8C%E9%85%8D%E7%BD%AE%E8%B7%AF%E7%94%B1%EF%BC%8C%E5%9F%BA%E4%BA%8E%E8%B7%AF%E7%94%B1%E6%B8%B2%E6%9F%93%E7%99%BB%E5%BD%95%E7%BB%84%E4%BB%B6"><span class="toc-number">9.0.0.3.</span> <span class="toc-text">9-3 案例 — 安装和配置路由，基于路由渲染登录组件</span></a></li></ol></li></ol></li></ol></li></ol>
                    </div>
                </span>
            </div>
        </div>
        
    </div>
</aside>



  
  <div class="duoshuo">
	<!-- 多说评论框 start -->
	<div class="ds-thread" data-thread-key="E_vue2" data-title="vue2" data-url="http://hannah-bingo.github.io/2021/08/30/E_vue2/"></div>
	<!-- 多说评论框 end -->
	<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
	<script type="text/javascript">
	var duoshuoQuery = {short_name:"true"};
	(function() {
		var ds = document.createElement('script');
		ds.type = 'text/javascript';ds.async = true;
		ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
		ds.charset = 'UTF-8';
		(document.getElementsByTagName('head')[0] 
		 || document.getElementsByTagName('body')[0]).appendChild(ds);
	})();
	</script>
	<!-- 多说公共JS代码 end -->
</div>

  
  
  
  <div id="cloud-tie-wrapper" class="cloud-tie-wrapper"></div>
<script>
  var cloudTieConfig = {
    url: "http://hannah-bingo.github.io/2021/08/30/E_vue2/", 
    sourceId: "E_vue2",
    productKey: "true",
    target: "cloud-tie-wrapper"
  };
</script>
<script src="//img1.cache.netease.com/f2e/tie/yun/sdk/loader.js"></script>
  

  
  <div id="SOHUCS" sid="E_vue2" ></div> 
<script charset="utf-8" type="text/javascript" src="//changyan.sohu.com/upload/changyan.js" ></script>
<script type="text/javascript">
    window.changyan.api.config({
        appid: "true",
        conf: "true"
    });
</script>
</script>
  

  

  


          </div>
        </div>
      </div>
      <footer id="footer">
  <div class="outer">
    <div id="footer-info">
    	<div class="footer-left">
    		&copy; 2021 Hannah 翼遥bingo
    	</div>
      	<div class="footer-right">
      		<a href="http://hexo.io/" target="_blank">Hexo</a>  Theme <a href="https://github.com/litten/hexo-theme-yilia" target="_blank">Yilia</a> by Litten
      	</div>
    </div>
  </div>
</footer>
    </div>
    <script>
	var yiliaConfig = {
		mathjax: false,
		isHome: false,
		isPost: true,
		isArchive: false,
		isTag: false,
		isCategory: false,
		open_in_new: false,
		toc_hide_index: true,
		root: "/",
		innerArchive: true,
		showTags: false
	}
</script>

<script>!function(t){function n(e){if(r[e])return r[e].exports;var i=r[e]={exports:{},id:e,loaded:!1};return t[e].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var r={};n.m=t,n.c=r,n.p="./",n(0)}([function(t,n,r){r(195),t.exports=r(191)},function(t,n,r){var e=r(3),i=r(52),o=r(27),u=r(28),c=r(53),f="prototype",a=function(t,n,r){var s,l,h,v,p=t&a.F,d=t&a.G,y=t&a.S,g=t&a.P,b=t&a.B,m=d?e:y?e[n]||(e[n]={}):(e[n]||{})[f],x=d?i:i[n]||(i[n]={}),w=x[f]||(x[f]={});d&&(r=n);for(s in r)l=!p&&m&&void 0!==m[s],h=(l?m:r)[s],v=b&&l?c(h,e):g&&"function"==typeof h?c(Function.call,h):h,m&&u(m,s,h,t&a.U),x[s]!=h&&o(x,s,v),g&&w[s]!=h&&(w[s]=h)};e.core=i,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n,r){var e=r(6);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(126)("wks"),i=r(76),o=r(3).Symbol,u="function"==typeof o;(t.exports=function(t){return e[t]||(e[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=e},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){var e=r(94),i=r(33);t.exports=function(t){return e(i(t))}},function(t,n,r){t.exports=!r(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(2),i=r(167),o=r(50),u=Object.defineProperty;n.f=r(10)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){t.exports=!r(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(14),i=r(22);t.exports=r(12)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(20),i=r(58),o=r(42),u=Object.defineProperty;n.f=r(12)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(40)("wks"),i=r(23),o=r(5).Symbol,u="function"==typeof o;(t.exports=function(t){return e[t]||(e[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=e},function(t,n,r){var e=r(67),i=Math.min;t.exports=function(t){return t>0?i(e(t),9007199254740991):0}},function(t,n,r){var e=r(46);t.exports=function(t){return Object(e(t))}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){var e=r(63),i=r(34);t.exports=Object.keys||function(t){return e(t,i)}},function(t,n,r){var e=r(21);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n){var r=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,r){var e=r(11),i=r(66);t.exports=r(10)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(3),i=r(27),o=r(24),u=r(76)("src"),c="toString",f=Function[c],a=(""+f).split(c);r(52).inspectSource=function(t){return f.call(t)},(t.exports=function(t,n,r,c){var f="function"==typeof r;f&&(o(r,"name")||i(r,"name",n)),t[n]!==r&&(f&&(o(r,u)||i(r,u,t[n]?""+t[n]:a.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:i(t,n,r):(delete t[n],i(t,n,r)))})(Function.prototype,c,function(){return"function"==typeof this&&this[u]||f.call(this)})},function(t,n,r){var e=r(1),i=r(4),o=r(46),u=function(t,n,r,e){var i=String(o(t)),u="<"+n;return""!==r&&(u+=" "+r+'="'+String(e).replace(/"/g,"&quot;")+'"'),u+">"+i+"</"+n+">"};t.exports=function(t,n){var r={};r[t]=n(u),e(e.P+e.F*i(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",r)}},function(t,n,r){var e=r(115),i=r(46);t.exports=function(t){return e(i(t))}},function(t,n,r){var e=r(116),i=r(66),o=r(30),u=r(50),c=r(24),f=r(167),a=Object.getOwnPropertyDescriptor;n.f=r(10)?a:function(t,n){if(t=o(t),n=u(n,!0),f)try{return a(t,n)}catch(t){}if(c(t,n))return i(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(24),i=r(17),o=r(145)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),e(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){t.exports={}},function(t,n){t.exports=!0},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(14).f,i=r(8),o=r(15)("toStringTag");t.exports=function(t,n,r){t&&!i(t=r?t:t.prototype,o)&&e(t,o,{configurable:!0,value:n})}},function(t,n,r){var e=r(40)("keys"),i=r(23);t.exports=function(t){return e[t]||(e[t]=i(t))}},function(t,n,r){var e=r(5),i="__core-js_shared__",o=e[i]||(e[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(21);t.exports=function(t,n){if(!e(t))return t;var r,i;if(n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!e(i=r.call(t)))return i;if(!n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(5),i=r(25),o=r(36),u=r(44),c=r(14).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,r){n.f=r(15)},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,n,r){var e=r(4);t.exports=function(t,n){return!!t&&e(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n,r){var e=r(53),i=r(115),o=r(17),u=r(16),c=r(203);t.exports=function(t,n){var r=1==t,f=2==t,a=3==t,s=4==t,l=6==t,h=5==t||l,v=n||c;return function(n,c,p){for(var d,y,g=o(n),b=i(g),m=e(c,p,3),x=u(b.length),w=0,S=r?v(n,x):f?v(n,0):void 0;x>w;w++)if((h||w in b)&&(d=b[w],y=m(d,w,g),t))if(r)S[w]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return w;case 2:S.push(d)}else if(s)return!1;return l?-1:a||s?s:S}}},function(t,n,r){var e=r(1),i=r(52),o=r(4);t.exports=function(t,n){var r=(i.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*o(function(){r(1)}),"Object",u)}},function(t,n,r){var e=r(6);t.exports=function(t,n){if(!e(t))return t;var r,i;if(n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!e(i=r.call(t)))return i;if(!n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(5),i=r(25),o=r(91),u=r(13),c="prototype",f=function(t,n,r){var a,s,l,h=t&f.F,v=t&f.G,p=t&f.S,d=t&f.P,y=t&f.B,g=t&f.W,b=v?i:i[n]||(i[n]={}),m=b[c],x=v?e:p?e[n]:(e[n]||{})[c];v&&(r=n);for(a in r)(s=!h&&x&&void 0!==x[a])&&a in b||(l=s?x[a]:r[a],b[a]=v&&"function"!=typeof x[a]?r[a]:y&&s?o(l,e):g&&x[a]==l?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n[c]=t[c],n}(l):d&&"function"==typeof l?o(Function.call,l):l,d&&((b.virtual||(b.virtual={}))[a]=l,t&f.R&&m&&!m[a]&&u(m,a,l)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n){var r=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},function(t,n,r){var e=r(26);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},function(t,n,r){var e=r(183),i=r(1),o=r(126)("metadata"),u=o.store||(o.store=new(r(186))),c=function(t,n,r){var i=u.get(t);if(!i){if(!r)return;u.set(t,i=new e)}var o=i.get(n);if(!o){if(!r)return;i.set(n,o=new e)}return o},f=function(t,n,r){var e=c(n,r,!1);return void 0!==e&&e.has(t)},a=function(t,n,r){var e=c(n,r,!1);return void 0===e?void 0:e.get(t)},s=function(t,n,r,e){c(r,e,!0).set(t,n)},l=function(t,n){var r=c(t,n,!1),e=[];return r&&r.forEach(function(t,n){e.push(n)}),e},h=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},v=function(t){i(i.S,"Reflect",t)};t.exports={store:u,map:c,has:f,get:a,set:s,keys:l,key:h,exp:v}},function(t,n,r){"use strict";if(r(10)){var e=r(69),i=r(3),o=r(4),u=r(1),c=r(127),f=r(152),a=r(53),s=r(68),l=r(66),h=r(27),v=r(73),p=r(67),d=r(16),y=r(75),g=r(50),b=r(24),m=r(180),x=r(114),w=r(6),S=r(17),_=r(137),O=r(70),E=r(32),P=r(71).f,j=r(154),F=r(76),M=r(7),A=r(48),N=r(117),T=r(146),I=r(155),k=r(80),L=r(123),R=r(74),C=r(130),D=r(160),U=r(11),W=r(31),G=U.f,B=W.f,V=i.RangeError,z=i.TypeError,q=i.Uint8Array,K="ArrayBuffer",J="Shared"+K,Y="BYTES_PER_ELEMENT",H="prototype",$=Array[H],X=f.ArrayBuffer,Q=f.DataView,Z=A(0),tt=A(2),nt=A(3),rt=A(4),et=A(5),it=A(6),ot=N(!0),ut=N(!1),ct=I.values,ft=I.keys,at=I.entries,st=$.lastIndexOf,lt=$.reduce,ht=$.reduceRight,vt=$.join,pt=$.sort,dt=$.slice,yt=$.toString,gt=$.toLocaleString,bt=M("iterator"),mt=M("toStringTag"),xt=F("typed_constructor"),wt=F("def_constructor"),St=c.CONSTR,_t=c.TYPED,Ot=c.VIEW,Et="Wrong length!",Pt=A(1,function(t,n){return Tt(T(t,t[wt]),n)}),jt=o(function(){return 1===new q(new Uint16Array([1]).buffer)[0]}),Ft=!!q&&!!q[H].set&&o(function(){new q(1).set({})}),Mt=function(t,n){if(void 0===t)throw z(Et);var r=+t,e=d(t);if(n&&!m(r,e))throw V(Et);return e},At=function(t,n){var r=p(t);if(r<0||r%n)throw V("Wrong offset!");return r},Nt=function(t){if(w(t)&&_t in t)return t;throw z(t+" is not a typed array!")},Tt=function(t,n){if(!(w(t)&&xt in t))throw z("It is not a typed array constructor!");return new t(n)},It=function(t,n){return kt(T(t,t[wt]),n)},kt=function(t,n){for(var r=0,e=n.length,i=Tt(t,e);e>r;)i[r]=n[r++];return i},Lt=function(t,n,r){G(t,n,{get:function(){return this._d[r]}})},Rt=function(t){var n,r,e,i,o,u,c=S(t),f=arguments.length,s=f>1?arguments[1]:void 0,l=void 0!==s,h=j(c);if(void 0!=h&&!_(h)){for(u=h.call(c),e=[],n=0;!(o=u.next()).done;n++)e.push(o.value);c=e}for(l&&f>2&&(s=a(s,arguments[2],2)),n=0,r=d(c.length),i=Tt(this,r);r>n;n++)i[n]=l?s(c[n],n):c[n];return i},Ct=function(){for(var t=0,n=arguments.length,r=Tt(this,n);n>t;)r[t]=arguments[t++];return r},Dt=!!q&&o(function(){gt.call(new q(1))}),Ut=function(){return gt.apply(Dt?dt.call(Nt(this)):Nt(this),arguments)},Wt={copyWithin:function(t,n){return D.call(Nt(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return rt(Nt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return C.apply(Nt(this),arguments)},filter:function(t){return It(this,tt(Nt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return et(Nt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return it(Nt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Z(Nt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return ut(Nt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(Nt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return vt.apply(Nt(this),arguments)},lastIndexOf:function(t){return st.apply(Nt(this),arguments)},map:function(t){return Pt(Nt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return lt.apply(Nt(this),arguments)},reduceRight:function(t){return ht.apply(Nt(this),arguments)},reverse:function(){for(var t,n=this,r=Nt(n).length,e=Math.floor(r/2),i=0;i<e;)t=n[i],n[i++]=n[--r],n[r]=t;return n},some:function(t){return nt(Nt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return pt.call(Nt(this),t)},subarray:function(t,n){var r=Nt(this),e=r.length,i=y(t,e);return new(T(r,r[wt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,d((void 0===n?e:y(n,e))-i))}},Gt=function(t,n){return It(this,dt.call(Nt(this),t,n))},Bt=function(t){Nt(this);var n=At(arguments[1],1),r=this.length,e=S(t),i=d(e.length),o=0;if(i+n>r)throw V(Et);for(;o<i;)this[n+o]=e[o++]},Vt={entries:function(){return at.call(Nt(this))},keys:function(){return ft.call(Nt(this))},values:function(){return ct.call(Nt(this))}},zt=function(t,n){return w(t)&&t[_t]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},qt=function(t,n){return zt(t,n=g(n,!0))?l(2,t[n]):B(t,n)},Kt=function(t,n,r){return!(zt(t,n=g(n,!0))&&w(r)&&b(r,"value"))||b(r,"get")||b(r,"set")||r.configurable||b(r,"writable")&&!r.writable||b(r,"enumerable")&&!r.enumerable?G(t,n,r):(t[n]=r.value,t)};St||(W.f=qt,U.f=Kt),u(u.S+u.F*!St,"Object",{getOwnPropertyDescriptor:qt,defineProperty:Kt}),o(function(){yt.call({})})&&(yt=gt=function(){return vt.call(this)});var Jt=v({},Wt);v(Jt,Vt),h(Jt,bt,Vt.values),v(Jt,{slice:Gt,set:Bt,constructor:function(){},toString:yt,toLocaleString:Ut}),Lt(Jt,"buffer","b"),Lt(Jt,"byteOffset","o"),Lt(Jt,"byteLength","l"),Lt(Jt,"length","e"),G(Jt,mt,{get:function(){return this[_t]}}),t.exports=function(t,n,r,f){f=!!f;var a=t+(f?"Clamped":"")+"Array",l="Uint8Array"!=a,v="get"+t,p="set"+t,y=i[a],g=y||{},b=y&&E(y),m=!y||!c.ABV,S={},_=y&&y[H],j=function(t,r){var e=t._d;return e.v[v](r*n+e.o,jt)},F=function(t,r,e){var i=t._d;f&&(e=(e=Math.round(e))<0?0:e>255?255:255&e),i.v[p](r*n+i.o,e,jt)},M=function(t,n){G(t,n,{get:function(){return j(this,n)},set:function(t){return F(this,n,t)},enumerable:!0})};m?(y=r(function(t,r,e,i){s(t,y,a,"_d");var o,u,c,f,l=0,v=0;if(w(r)){if(!(r instanceof X||(f=x(r))==K||f==J))return _t in r?kt(y,r):Rt.call(y,r);o=r,v=At(e,n);var p=r.byteLength;if(void 0===i){if(p%n)throw V(Et);if((u=p-v)<0)throw V(Et)}else if((u=d(i)*n)+v>p)throw V(Et);c=u/n}else c=Mt(r,!0),u=c*n,o=new X(u);for(h(t,"_d",{b:o,o:v,l:u,e:c,v:new Q(o)});l<c;)M(t,l++)}),_=y[H]=O(Jt),h(_,"constructor",y)):L(function(t){new y(null),new y(t)},!0)||(y=r(function(t,r,e,i){s(t,y,a);var o;return w(r)?r instanceof X||(o=x(r))==K||o==J?void 0!==i?new g(r,At(e,n),i):void 0!==e?new g(r,At(e,n)):new g(r):_t in r?kt(y,r):Rt.call(y,r):new g(Mt(r,l))}),Z(b!==Function.prototype?P(g).concat(P(b)):P(g),function(t){t in y||h(y,t,g[t])}),y[H]=_,e||(_.constructor=y));var A=_[bt],N=!!A&&("values"==A.name||void 0==A.name),T=Vt.values;h(y,xt,!0),h(_,_t,a),h(_,Ot,!0),h(_,wt,y),(f?new y(1)[mt]==a:mt in _)||G(_,mt,{get:function(){return a}}),S[a]=y,u(u.G+u.W+u.F*(y!=g),S),u(u.S,a,{BYTES_PER_ELEMENT:n,from:Rt,of:Ct}),Y in _||h(_,Y,n),u(u.P,a,Wt),R(a),u(u.P+u.F*Ft,a,{set:Bt}),u(u.P+u.F*!N,a,Vt),u(u.P+u.F*(_.toString!=yt),a,{toString:yt}),u(u.P+u.F*o(function(){new y(1).slice()}),a,{slice:Gt}),u(u.P+u.F*(o(function(){return[1,2].toLocaleString()!=new y([1,2]).toLocaleString()})||!o(function(){_.toLocaleString.call([1,2])})),a,{toLocaleString:Ut}),k[a]=N?A:T,e||N||h(_,bt,T)}}else t.exports=function(){}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n,r){var e=r(21),i=r(5).document,o=e(i)&&e(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,r){t.exports=!r(12)&&!r(18)(function(){return 7!=Object.defineProperty(r(57)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){"use strict";var e=r(36),i=r(51),o=r(64),u=r(13),c=r(8),f=r(35),a=r(96),s=r(38),l=r(103),h=r(15)("iterator"),v=!([].keys&&"next"in[].keys()),p="keys",d="values",y=function(){return this};t.exports=function(t,n,r,g,b,m,x){a(r,n,g);var w,S,_,O=function(t){if(!v&&t in F)return F[t];switch(t){case p:case d:return function(){return new r(this,t)}}return function(){return new r(this,t)}},E=n+" Iterator",P=b==d,j=!1,F=t.prototype,M=F[h]||F["@@iterator"]||b&&F[b],A=M||O(b),N=b?P?O("entries"):A:void 0,T="Array"==n?F.entries||M:M;if(T&&(_=l(T.call(new t)))!==Object.prototype&&(s(_,E,!0),e||c(_,h)||u(_,h,y)),P&&M&&M.name!==d&&(j=!0,A=function(){return M.call(this)}),e&&!x||!v&&!j&&F[h]||u(F,h,A),f[n]=A,f[E]=y,b)if(w={values:P?A:O(d),keys:m?A:O(p),entries:N},x)for(S in w)S in F||o(F,S,w[S]);else i(i.P+i.F*(v||j),n,w);return w}},function(t,n,r){var e=r(20),i=r(100),o=r(34),u=r(39)("IE_PROTO"),c=function(){},f="prototype",a=function(){var t,n=r(57)("iframe"),e=o.length;for(n.style.display="none",r(93).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;e--;)delete a[f][o[e]];return a()};t.exports=Object.create||function(t,n){var r;return null!==t?(c[f]=e(t),r=new c,c[f]=null,r[u]=t):r=a(),void 0===n?r:i(r,n)}},function(t,n,r){var e=r(63),i=r(34).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,i)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(8),i=r(9),o=r(90)(!1),u=r(39)("IE_PROTO");t.exports=function(t,n){var r,c=i(t),f=0,a=[];for(r in c)r!=u&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~o(a,r)||a.push(r));return a}},function(t,n,r){t.exports=r(13)},function(t,n,r){var e=r(76)("meta"),i=r(6),o=r(24),u=r(11).f,c=0,f=Object.isExtensible||function(){return!0},a=!r(4)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,e)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[e].i},h=function(t,n){if(!o(t,e)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[e].w},v=function(t){return a&&p.NEED&&f(t)&&!o(t,e)&&s(t),t},p=t.exports={KEY:e,NEED:!1,fastKey:l,getWeak:h,onFreeze:v}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n){t.exports=!1},function(t,n,r){var e=r(2),i=r(173),o=r(133),u=r(145)("IE_PROTO"),c=function(){},f="prototype",a=function(){var t,n=r(132)("iframe"),e=o.length;for(n.style.display="none",r(135).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;e--;)delete a[f][o[e]];return a()};t.exports=Object.create||function(t,n){var r;return null!==t?(c[f]=e(t),r=new c,c[f]=null,r[u]=t):r=a(),void 0===n?r:i(r,n)}},function(t,n,r){var e=r(175),i=r(133).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,i)}},function(t,n,r){var e=r(175),i=r(133);t.exports=Object.keys||function(t){return e(t,i)}},function(t,n,r){var e=r(28);t.exports=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}},function(t,n,r){"use strict";var e=r(3),i=r(11),o=r(10),u=r(7)("species");t.exports=function(t){var n=e[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n,r){var e=r(67),i=Math.max,o=Math.min;t.exports=function(t,n){return t=e(t),t<0?i(t+n,0):o(t,n)}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n,r){var e=r(33);t.exports=function(t){return Object(e(t))}},function(t,n,r){var e=r(7)("unscopables"),i=Array.prototype;void 0==i[e]&&r(27)(i,e,{}),t.exports=function(t){i[e][t]=!0}},function(t,n,r){var e=r(53),i=r(169),o=r(137),u=r(2),c=r(16),f=r(154),a={},s={},n=t.exports=function(t,n,r,l,h){var v,p,d,y,g=h?function(){return t}:f(t),b=e(r,l,n?2:1),m=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(v=c(t.length);v>m;m++)if((y=n?b(u(p=t[m])[0],p[1]):b(t[m]))===a||y===s)return y}else for(d=g.call(t);!(p=d.next()).done;)if((y=i(d,b,p.value,n))===a||y===s)return y};n.BREAK=a,n.RETURN=s},function(t,n){t.exports={}},function(t,n,r){var e=r(11).f,i=r(24),o=r(7)("toStringTag");t.exports=function(t,n,r){t&&!i(t=r?t:t.prototype,o)&&e(t,o,{configurable:!0,value:n})}},function(t,n,r){var e=r(1),i=r(46),o=r(4),u=r(150),c="["+u+"]",f="​",a=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),l=function(t,n,r){var i={},c=o(function(){return!!u[t]()||f[t]()!=f}),a=i[t]=c?n(h):u[t];r&&(i[r]=a),e(e.P+e.F*c,"String",i)},h=l.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(a,"")),2&n&&(t=t.replace(s,"")),t};t.exports=l},function(t,n,r){t.exports={default:r(86),__esModule:!0}},function(t,n,r){t.exports={default:r(87),__esModule:!0}},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=r(84),o=e(i),u=r(83),c=e(u),f="function"==typeof c.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":typeof t};n.default="function"==typeof c.default&&"symbol"===f(o.default)?function(t){return void 0===t?"undefined":f(t)}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":void 0===t?"undefined":f(t)}},function(t,n,r){r(110),r(108),r(111),r(112),t.exports=r(25).Symbol},function(t,n,r){r(109),r(113),t.exports=r(44).f("iterator")},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){t.exports=function(){}},function(t,n,r){var e=r(9),i=r(106),o=r(105);t.exports=function(t){return function(n,r,u){var c,f=e(n),a=i(f.length),s=o(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}}},function(t,n,r){var e=r(88);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},function(t,n,r){var e=r(19),i=r(62),o=r(37);t.exports=function(t){var n=e(t),r=i.f;if(r)for(var u,c=r(t),f=o.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n,r){t.exports=r(5).document&&document.documentElement},function(t,n,r){var e=r(56);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n,r){var e=r(56);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){"use strict";var e=r(60),i=r(22),o=r(38),u={};r(13)(u,r(15)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+" Iterator")}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){var e=r(19),i=r(9);t.exports=function(t,n){for(var r,o=i(t),u=e(o),c=u.length,f=0;c>f;)if(o[r=u[f++]]===n)return r}},function(t,n,r){var e=r(23)("meta"),i=r(21),o=r(8),u=r(14).f,c=0,f=Object.isExtensible||function(){return!0},a=!r(18)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,e)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[e].i},h=function(t,n){if(!o(t,e)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[e].w},v=function(t){return a&&p.NEED&&f(t)&&!o(t,e)&&s(t),t},p=t.exports={KEY:e,NEED:!1,fastKey:l,getWeak:h,onFreeze:v}},function(t,n,r){var e=r(14),i=r(20),o=r(19);t.exports=r(12)?Object.defineProperties:function(t,n){i(t);for(var r,u=o(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},function(t,n,r){var e=r(37),i=r(22),o=r(9),u=r(42),c=r(8),f=r(58),a=Object.getOwnPropertyDescriptor;n.f=r(12)?a:function(t,n){if(t=o(t),n=u(n,!0),f)try{return a(t,n)}catch(t){}if(c(t,n))return i(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(9),i=r(61).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?c(t):i(e(t))}},function(t,n,r){var e=r(8),i=r(77),o=r(39)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),e(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,r){var e=r(41),i=r(33);t.exports=function(t){return function(n,r){var o,u,c=String(i(n)),f=e(r),a=c.length;return f<0||f>=a?t?"":void 0:(o=c.charCodeAt(f),o<55296||o>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):o:t?c.slice(f,f+2):u-56320+(o-55296<<10)+65536)}}},function(t,n,r){var e=r(41),i=Math.max,o=Math.min;t.exports=function(t,n){return t=e(t),t<0?i(t+n,0):o(t,n)}},function(t,n,r){var e=r(41),i=Math.min;t.exports=function(t){return t>0?i(e(t),9007199254740991):0}},function(t,n,r){"use strict";var e=r(89),i=r(97),o=r(35),u=r(9);t.exports=r(59)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==n?i(0,r):"values"==n?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,e("keys"),e("values"),e("entries")},function(t,n){},function(t,n,r){"use strict";var e=r(104)(!0);r(59)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n,r){"use strict";var e=r(5),i=r(8),o=r(12),u=r(51),c=r(64),f=r(99).KEY,a=r(18),s=r(40),l=r(38),h=r(23),v=r(15),p=r(44),d=r(43),y=r(98),g=r(92),b=r(95),m=r(20),x=r(9),w=r(42),S=r(22),_=r(60),O=r(102),E=r(101),P=r(14),j=r(19),F=E.f,M=P.f,A=O.f,N=e.Symbol,T=e.JSON,I=T&&T.stringify,k="prototype",L=v("_hidden"),R=v("toPrimitive"),C={}.propertyIsEnumerable,D=s("symbol-registry"),U=s("symbols"),W=s("op-symbols"),G=Object[k],B="function"==typeof N,V=e.QObject,z=!V||!V[k]||!V[k].findChild,q=o&&a(function(){return 7!=_(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=F(G,n);e&&delete G[n],M(t,n,r),e&&t!==G&&M(G,n,e)}:M,K=function(t){var n=U[t]=_(N[k]);return n._k=t,n},J=B&&"symbol"==typeof N.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof N},Y=function(t,n,r){return t===G&&Y(W,n,r),m(t),n=w(n,!0),m(r),i(U,n)?(r.enumerable?(i(t,L)&&t[L][n]&&(t[L][n]=!1),r=_(r,{enumerable:S(0,!1)})):(i(t,L)||M(t,L,S(1,{})),t[L][n]=!0),q(t,n,r)):M(t,n,r)},H=function(t,n){m(t);for(var r,e=g(n=x(n)),i=0,o=e.length;o>i;)Y(t,r=e[i++],n[r]);return t},$=function(t,n){return void 0===n?_(t):H(_(t),n)},X=function(t){var n=C.call(this,t=w(t,!0));return!(this===G&&i(U,t)&&!i(W,t))&&(!(n||!i(this,t)||!i(U,t)||i(this,L)&&this[L][t])||n)},Q=function(t,n){if(t=x(t),n=w(n,!0),t!==G||!i(U,n)||i(W,n)){var r=F(t,n);return!r||!i(U,n)||i(t,L)&&t[L][n]||(r.enumerable=!0),r}},Z=function(t){for(var n,r=A(x(t)),e=[],o=0;r.length>o;)i(U,n=r[o++])||n==L||n==f||e.push(n);return e},tt=function(t){for(var n,r=t===G,e=A(r?W:x(t)),o=[],u=0;e.length>u;)!i(U,n=e[u++])||r&&!i(G,n)||o.push(U[n]);return o};B||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(r){this===G&&n.call(W,r),i(this,L)&&i(this[L],t)&&(this[L][t]=!1),q(this,t,S(1,r))};return o&&z&&q(G,t,{configurable:!0,set:n}),K(t)},c(N[k],"toString",function(){return this._k}),E.f=Q,P.f=Y,r(61).f=O.f=Z,r(37).f=X,r(62).f=tt,o&&!r(36)&&c(G,"propertyIsEnumerable",X,!0),p.f=function(t){return K(v(t))}),u(u.G+u.W+u.F*!B,{Symbol:N});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)v(nt[rt++]);for(var nt=j(v.store),rt=0;nt.length>rt;)d(nt[rt++]);u(u.S+u.F*!B,"Symbol",{for:function(t){return i(D,t+="")?D[t]:D[t]=N(t)},keyFor:function(t){if(J(t))return y(D,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!B,"Object",{create:$,defineProperty:Y,defineProperties:H,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),T&&u(u.S+u.F*(!B||a(function(){var t=N();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!J(t)){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);return n=e[1],"function"==typeof n&&(r=n),!r&&b(n)||(n=function(t,n){if(r&&(n=r.call(this,t,n)),!J(n))return n}),e[1]=n,I.apply(T,e)}}}),N[k][R]||r(13)(N[k],R,N[k].valueOf),l(N,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n,r){r(43)("asyncIterator")},function(t,n,r){r(43)("observable")},function(t,n,r){r(107);for(var e=r(5),i=r(13),o=r(35),u=r(15)("toStringTag"),c=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],f=0;f<5;f++){var a=c[f],s=e[a],l=s&&s.prototype;l&&!l[u]&&i(l,u,a),o[a]=o.Array}},function(t,n,r){var e=r(45),i=r(7)("toStringTag"),o="Arguments"==e(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=u(n=Object(t),i))?r:o?e(n):"Object"==(c=e(n))&&"function"==typeof n.callee?"Arguments":c}},function(t,n,r){var e=r(45);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(30),i=r(16),o=r(75);t.exports=function(t){return function(n,r,u){var c,f=e(n),a=i(f.length),s=o(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}}},function(t,n,r){"use strict";var e=r(3),i=r(1),o=r(28),u=r(73),c=r(65),f=r(79),a=r(68),s=r(6),l=r(4),h=r(123),v=r(81),p=r(136);t.exports=function(t,n,r,d,y,g){var b=e[t],m=b,x=y?"set":"add",w=m&&m.prototype,S={},_=function(t){var n=w[t];o(w,t,"delete"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!s(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof m&&(g||w.forEach&&!l(function(){(new m).entries().next()}))){var O=new m,E=O[x](g?{}:-0,1)!=O,P=l(function(){O.has(1)}),j=h(function(t){new m(t)}),F=!g&&l(function(){for(var t=new m,n=5;n--;)t[x](n,n);return!t.has(-0)});j||(m=n(function(n,r){a(n,m,t);var e=p(new b,n,m);return void 0!=r&&f(r,y,e[x],e),e}),m.prototype=w,w.constructor=m),(P||F)&&(_("delete"),_("has"),y&&_("get")),(F||E)&&_(x),g&&w.clear&&delete w.clear}else m=d.getConstructor(n,t,y,x),u(m.prototype,r),c.NEED=!0;return v(m,t),S[t]=m,i(i.G+i.W+i.F*(m!=b),S),g||d.setStrong(m,t,y),m}},function(t,n,r){"use strict";var e=r(27),i=r(28),o=r(4),u=r(46),c=r(7);t.exports=function(t,n,r){var f=c(t),a=r(u,f,""[t]),s=a[0],l=a[1];o(function(){var n={};return n[f]=function(){return 7},7!=""[t](n)})&&(i(String.prototype,t,s),e(RegExp.prototype,f,2==n?function(t,n){return l.call(t,this,n)}:function(t){return l.call(t,this)}))}
},function(t,n,r){"use strict";var e=r(2);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n){t.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},function(t,n,r){var e=r(6),i=r(45),o=r(7)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,r){var e=r(7)("iterator"),i=!1;try{var o=[7][e]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var r=!1;try{var o=[7],u=o[e]();u.next=function(){return{done:r=!0}},o[e]=function(){return u},t(o)}catch(t){}return r}},function(t,n,r){t.exports=r(69)||!r(4)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete r(3)[t]})},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(3),i="__core-js_shared__",o=e[i]||(e[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n,r){for(var e,i=r(3),o=r(27),u=r(76),c=u("typed_array"),f=u("view"),a=!(!i.ArrayBuffer||!i.DataView),s=a,l=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(e=i[h[l++]])?(o(e.prototype,c,!0),o(e.prototype,f,!0)):s=!1;t.exports={ABV:a,CONSTR:s,TYPED:c,VIEW:f}},function(t,n){"use strict";var r={versions:function(){var t=window.navigator.userAgent;return{trident:t.indexOf("Trident")>-1,presto:t.indexOf("Presto")>-1,webKit:t.indexOf("AppleWebKit")>-1,gecko:t.indexOf("Gecko")>-1&&-1==t.indexOf("KHTML"),mobile:!!t.match(/AppleWebKit.*Mobile.*/),ios:!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:t.indexOf("Android")>-1||t.indexOf("Linux")>-1,iPhone:t.indexOf("iPhone")>-1||t.indexOf("Mac")>-1,iPad:t.indexOf("iPad")>-1,webApp:-1==t.indexOf("Safari"),weixin:-1==t.indexOf("MicroMessenger")}}()};t.exports=r},function(t,n,r){"use strict";var e=r(85),i=function(t){return t&&t.__esModule?t:{default:t}}(e),o=function(){function t(t,n,e){return n||e?String.fromCharCode(n||e):r[t]||t}function n(t){return e[t]}var r={"&quot;":'"',"&lt;":"<","&gt;":">","&amp;":"&","&nbsp;":" "},e={};for(var u in r)e[r[u]]=u;return r["&apos;"]="'",e["'"]="&#39;",{encode:function(t){return t?(""+t).replace(/['<> "&]/g,n).replace(/\r?\n/g,"<br/>").replace(/\s/g,"&nbsp;"):""},decode:function(n){return n?(""+n).replace(/<br\s*\/?>/gi,"\n").replace(/&quot;|&lt;|&gt;|&amp;|&nbsp;|&apos;|&#(\d+);|&#(\d+)/g,t).replace(/\u00a0/g," "):""},encodeBase16:function(t){if(!t)return t;t+="";for(var n=[],r=0,e=t.length;e>r;r++)n.push(t.charCodeAt(r).toString(16).toUpperCase());return n.join("")},encodeBase16forJSON:function(t){if(!t)return t;t=t.replace(/[\u4E00-\u9FBF]/gi,function(t){return escape(t).replace("%u","\\u")});for(var n=[],r=0,e=t.length;e>r;r++)n.push(t.charCodeAt(r).toString(16).toUpperCase());return n.join("")},decodeBase16:function(t){if(!t)return t;t+="";for(var n=[],r=0,e=t.length;e>r;r+=2)n.push(String.fromCharCode("0x"+t.slice(r,r+2)));return n.join("")},encodeObject:function(t){if(t instanceof Array)for(var n=0,r=t.length;r>n;n++)t[n]=o.encodeObject(t[n]);else if("object"==(void 0===t?"undefined":(0,i.default)(t)))for(var e in t)t[e]=o.encodeObject(t[e]);else if("string"==typeof t)return o.encode(t);return t},loadScript:function(t){var n=document.createElement("script");document.getElementsByTagName("body")[0].appendChild(n),n.setAttribute("src",t)},addLoadEvent:function(t){var n=window.onload;"function"!=typeof window.onload?window.onload=t:window.onload=function(){n(),t()}}}}();t.exports=o},function(t,n,r){"use strict";var e=r(17),i=r(75),o=r(16);t.exports=function(t){for(var n=e(this),r=o(n.length),u=arguments.length,c=i(u>1?arguments[1]:void 0,r),f=u>2?arguments[2]:void 0,a=void 0===f?r:i(f,r);a>c;)n[c++]=t;return n}},function(t,n,r){"use strict";var e=r(11),i=r(66);t.exports=function(t,n,r){n in t?e.f(t,n,i(0,r)):t[n]=r}},function(t,n,r){var e=r(6),i=r(3).document,o=e(i)&&e(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(7)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,r){t.exports=r(3).document&&document.documentElement},function(t,n,r){var e=r(6),i=r(144).set;t.exports=function(t,n,r){var o,u=n.constructor;return u!==r&&"function"==typeof u&&(o=u.prototype)!==r.prototype&&e(o)&&i&&i(t,o),t}},function(t,n,r){var e=r(80),i=r(7)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||o[i]===t)}},function(t,n,r){var e=r(45);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){"use strict";var e=r(70),i=r(66),o=r(81),u={};r(27)(u,r(7)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+" Iterator")}},function(t,n,r){"use strict";var e=r(69),i=r(1),o=r(28),u=r(27),c=r(24),f=r(80),a=r(139),s=r(81),l=r(32),h=r(7)("iterator"),v=!([].keys&&"next"in[].keys()),p="keys",d="values",y=function(){return this};t.exports=function(t,n,r,g,b,m,x){a(r,n,g);var w,S,_,O=function(t){if(!v&&t in F)return F[t];switch(t){case p:case d:return function(){return new r(this,t)}}return function(){return new r(this,t)}},E=n+" Iterator",P=b==d,j=!1,F=t.prototype,M=F[h]||F["@@iterator"]||b&&F[b],A=M||O(b),N=b?P?O("entries"):A:void 0,T="Array"==n?F.entries||M:M;if(T&&(_=l(T.call(new t)))!==Object.prototype&&(s(_,E,!0),e||c(_,h)||u(_,h,y)),P&&M&&M.name!==d&&(j=!0,A=function(){return M.call(this)}),e&&!x||!v&&!j&&F[h]||u(F,h,A),f[n]=A,f[E]=y,b)if(w={values:P?A:O(d),keys:m?A:O(p),entries:N},x)for(S in w)S in F||o(F,S,w[S]);else i(i.P+i.F*(v||j),n,w);return w}},function(t,n){var r=Math.expm1;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n,r){var e=r(3),i=r(151).set,o=e.MutationObserver||e.WebKitMutationObserver,u=e.process,c=e.Promise,f="process"==r(45)(u);t.exports=function(){var t,n,r,a=function(){var e,i;for(f&&(e=u.domain)&&e.exit();t;){i=t.fn,t=t.next;try{i()}catch(e){throw t?r():n=void 0,e}}n=void 0,e&&e.enter()};if(f)r=function(){u.nextTick(a)};else if(o){var s=!0,l=document.createTextNode("");new o(a).observe(l,{characterData:!0}),r=function(){l.data=s=!s}}else if(c&&c.resolve){var h=c.resolve();r=function(){h.then(a)}}else r=function(){i.call(e,a)};return function(e){var i={fn:e,next:void 0};n&&(n.next=i),t||(t=i,r()),n=i}}},function(t,n,r){var e=r(6),i=r(2),o=function(t,n){if(i(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{e=r(53)(Function.call,r(31).f(Object.prototype,"__proto__").set,2),e(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,r){return o(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:o}},function(t,n,r){var e=r(126)("keys"),i=r(76);t.exports=function(t){return e[t]||(e[t]=i(t))}},function(t,n,r){var e=r(2),i=r(26),o=r(7)("species");t.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||void 0==(r=e(u)[o])?n:i(r)}},function(t,n,r){var e=r(67),i=r(46);t.exports=function(t){return function(n,r){var o,u,c=String(i(n)),f=e(r),a=c.length;return f<0||f>=a?t?"":void 0:(o=c.charCodeAt(f),o<55296||o>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):o:t?c.slice(f,f+2):u-56320+(o-55296<<10)+65536)}}},function(t,n,r){var e=r(122),i=r(46);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},function(t,n,r){"use strict";var e=r(67),i=r(46);t.exports=function(t){var n=String(i(this)),r="",o=e(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(r+=n);return r}},function(t,n){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(t,n,r){var e,i,o,u=r(53),c=r(121),f=r(135),a=r(132),s=r(3),l=s.process,h=s.setImmediate,v=s.clearImmediate,p=s.MessageChannel,d=0,y={},g="onreadystatechange",b=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},m=function(t){b.call(t.data)};h&&v||(h=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return y[++d]=function(){c("function"==typeof t?t:Function(t),n)},e(d),d},v=function(t){delete y[t]},"process"==r(45)(l)?e=function(t){l.nextTick(u(b,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=m,e=u(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",m,!1)):e=g in a("script")?function(t){f.appendChild(a("script"))[g]=function(){f.removeChild(this),b.call(t)}}:function(t){setTimeout(u(b,t,1),0)}),t.exports={set:h,clear:v}},function(t,n,r){"use strict";var e=r(3),i=r(10),o=r(69),u=r(127),c=r(27),f=r(73),a=r(4),s=r(68),l=r(67),h=r(16),v=r(71).f,p=r(11).f,d=r(130),y=r(81),g="ArrayBuffer",b="DataView",m="prototype",x="Wrong length!",w="Wrong index!",S=e[g],_=e[b],O=e.Math,E=e.RangeError,P=e.Infinity,j=S,F=O.abs,M=O.pow,A=O.floor,N=O.log,T=O.LN2,I="buffer",k="byteLength",L="byteOffset",R=i?"_b":I,C=i?"_l":k,D=i?"_o":L,U=function(t,n,r){var e,i,o,u=Array(r),c=8*r-n-1,f=(1<<c)-1,a=f>>1,s=23===n?M(2,-24)-M(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for(t=F(t),t!=t||t===P?(i=t!=t?1:0,e=f):(e=A(N(t)/T),t*(o=M(2,-e))<1&&(e--,o*=2),t+=e+a>=1?s/o:s*M(2,1-a),t*o>=2&&(e++,o/=2),e+a>=f?(i=0,e=f):e+a>=1?(i=(t*o-1)*M(2,n),e+=a):(i=t*M(2,a-1)*M(2,n),e=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(e=e<<n|i,c+=n;c>0;u[l++]=255&e,e/=256,c-=8);return u[--l]|=128*h,u},W=function(t,n,r){var e,i=8*r-n-1,o=(1<<i)-1,u=o>>1,c=i-7,f=r-1,a=t[f--],s=127&a;for(a>>=7;c>0;s=256*s+t[f],f--,c-=8);for(e=s&(1<<-c)-1,s>>=-c,c+=n;c>0;e=256*e+t[f],f--,c-=8);if(0===s)s=1-u;else{if(s===o)return e?NaN:a?-P:P;e+=M(2,n),s-=u}return(a?-1:1)*e*M(2,s-n)},G=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},B=function(t){return[255&t]},V=function(t){return[255&t,t>>8&255]},z=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},q=function(t){return U(t,52,8)},K=function(t){return U(t,23,4)},J=function(t,n,r){p(t[m],n,{get:function(){return this[r]}})},Y=function(t,n,r,e){var i=+r,o=l(i);if(i!=o||o<0||o+n>t[C])throw E(w);var u=t[R]._b,c=o+t[D],f=u.slice(c,c+n);return e?f:f.reverse()},H=function(t,n,r,e,i,o){var u=+r,c=l(u);if(u!=c||c<0||c+n>t[C])throw E(w);for(var f=t[R]._b,a=c+t[D],s=e(+i),h=0;h<n;h++)f[a+h]=s[o?h:n-h-1]},$=function(t,n){s(t,S,g);var r=+n,e=h(r);if(r!=e)throw E(x);return e};if(u.ABV){if(!a(function(){new S})||!a(function(){new S(.5)})){S=function(t){return new j($(this,t))};for(var X,Q=S[m]=j[m],Z=v(j),tt=0;Z.length>tt;)(X=Z[tt++])in S||c(S,X,j[X]);o||(Q.constructor=S)}var nt=new _(new S(2)),rt=_[m].setInt8;nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||f(_[m],{setInt8:function(t,n){rt.call(this,t,n<<24>>24)},setUint8:function(t,n){rt.call(this,t,n<<24>>24)}},!0)}else S=function(t){var n=$(this,t);this._b=d.call(Array(n),0),this[C]=n},_=function(t,n,r){s(this,_,b),s(t,S,b);var e=t[C],i=l(n);if(i<0||i>e)throw E("Wrong offset!");if(r=void 0===r?e-i:h(r),i+r>e)throw E(x);this[R]=t,this[D]=i,this[C]=r},i&&(J(S,k,"_l"),J(_,I,"_b"),J(_,k,"_l"),J(_,L,"_o")),f(_[m],{getInt8:function(t){return Y(this,1,t)[0]<<24>>24},getUint8:function(t){return Y(this,1,t)[0]},getInt16:function(t){var n=Y(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=Y(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return G(Y(this,4,t,arguments[1]))},getUint32:function(t){return G(Y(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return W(Y(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return W(Y(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){H(this,1,t,B,n)},setUint8:function(t,n){H(this,1,t,B,n)},setInt16:function(t,n){H(this,2,t,V,n,arguments[2])},setUint16:function(t,n){H(this,2,t,V,n,arguments[2])},setInt32:function(t,n){H(this,4,t,z,n,arguments[2])},setUint32:function(t,n){H(this,4,t,z,n,arguments[2])},setFloat32:function(t,n){H(this,4,t,K,n,arguments[2])},setFloat64:function(t,n){H(this,8,t,q,n,arguments[2])}});y(S,g),y(_,b),c(_[m],u.VIEW,!0),n[g]=S,n[b]=_},function(t,n,r){var e=r(3),i=r(52),o=r(69),u=r(182),c=r(11).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,r){var e=r(114),i=r(7)("iterator"),o=r(80);t.exports=r(52).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[e(t)]}},function(t,n,r){"use strict";var e=r(78),i=r(170),o=r(80),u=r(30);t.exports=r(140)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==n?i(0,r):"values"==n?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,e("keys"),e("values"),e("entries")},function(t,n){function r(t,n){t.classList?t.classList.add(n):t.className+=" "+n}t.exports=r},function(t,n){function r(t,n){if(t.classList)t.classList.remove(n);else{var r=new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi");t.className=t.className.replace(r," ")}}t.exports=r},function(t,n){function r(){throw new Error("setTimeout has not been defined")}function e(){throw new Error("clearTimeout has not been defined")}function i(t){if(s===setTimeout)return setTimeout(t,0);if((s===r||!s)&&setTimeout)return s=setTimeout,setTimeout(t,0);try{return s(t,0)}catch(n){try{return s.call(null,t,0)}catch(n){return s.call(this,t,0)}}}function o(t){if(l===clearTimeout)return clearTimeout(t);if((l===e||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(n){try{return l.call(null,t)}catch(n){return l.call(this,t)}}}function u(){d&&v&&(d=!1,v.length?p=v.concat(p):y=-1,p.length&&c())}function c(){if(!d){var t=i(u);d=!0;for(var n=p.length;n;){for(v=p,p=[];++y<n;)v&&v[y].run();y=-1,n=p.length}v=null,d=!1,o(t)}}function f(t,n){this.fun=t,this.array=n}function a(){}var s,l,h=t.exports={};!function(){try{s="function"==typeof setTimeout?setTimeout:r}catch(t){s=r}try{l="function"==typeof clearTimeout?clearTimeout:e}catch(t){l=e}}();var v,p=[],d=!1,y=-1;h.nextTick=function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];p.push(new f(t,n)),1!==p.length||d||i(c)},f.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=a,h.addListener=a,h.once=a,h.off=a,h.removeListener=a,h.removeAllListeners=a,h.emit=a,h.prependListener=a,h.prependOnceListener=a,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,n,r){var e=r(45);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},function(t,n,r){"use strict";var e=r(17),i=r(75),o=r(16);t.exports=[].copyWithin||function(t,n){var r=e(this),u=o(r.length),c=i(t,u),f=i(n,u),a=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===a?u:i(a,u))-f,u-c),l=1;for(f<c&&c<f+s&&(l=-1,f+=s-1,c+=s-1);s-- >0;)f in r?r[c]=r[f]:delete r[c],c+=l,f+=l;return r}},function(t,n,r){var e=r(79);t.exports=function(t,n){var r=[];return e(t,!1,r.push,r,n),r}},function(t,n,r){var e=r(26),i=r(17),o=r(115),u=r(16);t.exports=function(t,n,r,c,f){e(n);var a=i(t),s=o(a),l=u(a.length),h=f?l-1:0,v=f?-1:1;if(r<2)for(;;){if(h in s){c=s[h],h+=v;break}if(h+=v,f?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;f?h>=0:l>h;h+=v)h in s&&(c=n(c,s[h],h,a));return c}},function(t,n,r){"use strict";var e=r(26),i=r(6),o=r(121),u=[].slice,c={},f=function(t,n,r){if(!(n in c)){for(var e=[],i=0;i<n;i++)e[i]="a["+i+"]";c[n]=Function("F,a","return new F("+e.join(",")+")")}return c[n](t,r)};t.exports=Function.bind||function(t){var n=e(this),r=u.call(arguments,1),c=function(){var e=r.concat(u.call(arguments));return this instanceof c?f(n,e.length,e):o(n,e,t)};return i(n.prototype)&&(c.prototype=n.prototype),c}},function(t,n,r){"use strict";var e=r(11).f,i=r(70),o=r(73),u=r(53),c=r(68),f=r(46),a=r(79),s=r(140),l=r(170),h=r(74),v=r(10),p=r(65).fastKey,d=v?"_s":"size",y=function(t,n){var r,e=p(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};t.exports={getConstructor:function(t,n,r,s){var l=t(function(t,e){c(t,l,n,"_i"),t._i=i(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=e&&a(e,r,t[s],t)});return o(l.prototype,{clear:function(){for(var t=this,n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[d]=0},delete:function(t){var n=this,r=y(n,t);if(r){var e=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=e),e&&(e.p=i),n._f==r&&(n._f=e),n._l==r&&(n._l=i),n[d]--}return!!r},forEach:function(t){c(this,l,"forEach");for(var n,r=u(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!y(this,t)}}),v&&e(l.prototype,"size",{get:function(){return f(this[d])}}),l},def:function(t,n,r){var e,i,o=y(t,n);return o?o.v=r:(t._l=o={i:i=p(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[d]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,n,r){s(t,n,function(t,n){this._t=t,this._k=n,this._l=void 0},function(){for(var t=this,n=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==n?l(0,r.k):"values"==n?l(0,r.v):l(0,[r.k,r.v]):(t._t=void 0,l(1))},r?"entries":"values",!r,!0),h(n)}}},function(t,n,r){var e=r(114),i=r(161);t.exports=function(t){return function(){if(e(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,n,r){"use strict";var e=r(73),i=r(65).getWeak,o=r(2),u=r(6),c=r(68),f=r(79),a=r(48),s=r(24),l=a(5),h=a(6),v=0,p=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},y=function(t,n){return l(t.a,function(t){return t[0]===n})};d.prototype={get:function(t){var n=y(this,t);if(n)return n[1]},has:function(t){return!!y(this,t)},set:function(t,n){var r=y(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=h(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,r,o){var a=t(function(t,e){c(t,a,n,"_i"),t._i=v++,t._l=void 0,void 0!=e&&f(e,r,t[o],t)});return e(a.prototype,{delete:function(t){if(!u(t))return!1;var n=i(t);return!0===n?p(this).delete(t):n&&s(n,this._i)&&delete n[this._i]},has:function(t){if(!u(t))return!1;var n=i(t);return!0===n?p(this).has(t):n&&s(n,this._i)}}),a},def:function(t,n,r){var e=i(o(n),!0);return!0===e?p(t).set(n,r):e[t._i]=r,t},ufstore:p}},function(t,n,r){t.exports=!r(10)&&!r(4)(function(){return 7!=Object.defineProperty(r(132)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(6),i=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&i(t)===t}},function(t,n,r){var e=r(2);t.exports=function(t,n,r,i){try{return i?n(e(r)[0],r[1]):n(r)}catch(n){var o=t.return;throw void 0!==o&&e(o.call(t)),n}}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,r){"use strict";var e=r(72),i=r(125),o=r(116),u=r(17),c=r(115),f=Object.assign;t.exports=!f||r(4)(function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=f({},t)[r]||Object.keys(f({},n)).join("")!=e})?function(t,n){for(var r=u(t),f=arguments.length,a=1,s=i.f,l=o.f;f>a;)for(var h,v=c(arguments[a++]),p=s?e(v).concat(s(v)):e(v),d=p.length,y=0;d>y;)l.call(v,h=p[y++])&&(r[h]=v[h]);return r}:f},function(t,n,r){var e=r(11),i=r(2),o=r(72);t.exports=r(10)?Object.defineProperties:function(t,n){i(t);for(var r,u=o(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},function(t,n,r){var e=r(30),i=r(71).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?c(t):i(e(t))}},function(t,n,r){var e=r(24),i=r(30),o=r(117)(!1),u=r(145)("IE_PROTO");t.exports=function(t,n){var r,c=i(t),f=0,a=[];for(r in c)r!=u&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~o(a,r)||a.push(r));return a}},function(t,n,r){var e=r(72),i=r(30),o=r(116).f;t.exports=function(t){return function(n){for(var r,u=i(n),c=e(u),f=c.length,a=0,s=[];f>a;)o.call(u,r=c[a++])&&s.push(t?[r,u[r]]:u[r]);return s}}},function(t,n,r){var e=r(71),i=r(125),o=r(2),u=r(3).Reflect;t.exports=u&&u.ownKeys||function(t){var n=e.f(o(t)),r=i.f;return r?n.concat(r(t)):n}},function(t,n,r){var e=r(3).parseFloat,i=r(82).trim;t.exports=1/e(r(150)+"-0")!=-1/0?function(t){var n=i(String(t),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},function(t,n,r){var e=r(3).parseInt,i=r(82).trim,o=r(150),u=/^[\-+]?0[xX]/;t.exports=8!==e(o+"08")||22!==e(o+"0x16")?function(t,n){var r=i(String(t),3);return e(r,n>>>0||(u.test(r)?16:10))}:e},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,r){var e=r(16),i=r(149),o=r(46);t.exports=function(t,n,r,u){var c=String(o(t)),f=c.length,a=void 0===r?" ":String(r),s=e(n);if(s<=f||""==a)return c;var l=s-f,h=i.call(a,Math.ceil(l/a.length));return h.length>l&&(h=h.slice(0,l)),u?h+c:c+h}},function(t,n,r){n.f=r(7)},function(t,n,r){"use strict";var e=r(164);t.exports=r(118)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var n=e.getEntry(this,t);return n&&n.v},set:function(t,n){return e.def(this,0===t?0:t,n)}},e,!0)},function(t,n,r){r(10)&&"g"!=/./g.flags&&r(11).f(RegExp.prototype,"flags",{configurable:!0,get:r(120)})},function(t,n,r){"use strict";var e=r(164);t.exports=r(118)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(this,t=0===t?0:t,t)}},e)},function(t,n,r){"use strict";var e,i=r(48)(0),o=r(28),u=r(65),c=r(172),f=r(166),a=r(6),s=u.getWeak,l=Object.isExtensible,h=f.ufstore,v={},p=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},d={get:function(t){if(a(t)){var n=s(t);return!0===n?h(this).get(t):n?n[this._i]:void 0}},set:function(t,n){return f.def(this,t,n)}},y=t.exports=r(118)("WeakMap",p,d,f,!0,!0);7!=(new y).set((Object.freeze||Object)(v),7).get(v)&&(e=f.getConstructor(p),c(e.prototype,d),u.NEED=!0,i(["delete","has","get","set"],function(t){var n=y.prototype,r=n[t];o(n,t,function(n,i){if(a(n)&&!l(n)){this._f||(this._f=new e);var o=this._f[t](n,i);return"set"==t?this:o}return r.call(this,n,i)})}))},,,,function(t,n){"use strict";function r(){var t=document.querySelector("#page-nav");if(t&&!document.querySelector("#page-nav .extend.prev")&&(t.innerHTML='<a class="extend prev disabled" rel="prev">&laquo; Prev</a>'+t.innerHTML),t&&!document.querySelector("#page-nav .extend.next")&&(t.innerHTML=t.innerHTML+'<a class="extend next disabled" rel="next">Next &raquo;</a>'),yiliaConfig&&yiliaConfig.open_in_new){document.querySelectorAll(".article-entry a:not(.article-more-a)").forEach(function(t){var n=t.getAttribute("target");n&&""!==n||t.setAttribute("target","_blank")})}if(yiliaConfig&&yiliaConfig.toc_hide_index){document.querySelectorAll(".toc-number").forEach(function(t){t.style.display="none"})}var n=document.querySelector("#js-aboutme");n&&0!==n.length&&(n.innerHTML=n.innerText)}t.exports={init:r}},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}function i(t,n){var r=/\/|index.html/g;return t.replace(r,"")===n.replace(r,"")}function o(){for(var t=document.querySelectorAll(".js-header-menu li a"),n=window.location.pathname,r=0,e=t.length;r<e;r++){var o=t[r];i(n,o.getAttribute("href"))&&(0,h.default)(o,"active")}}function u(t){for(var n=t.offsetLeft,r=t.offsetParent;null!==r;)n+=r.offsetLeft,r=r.offsetParent;return n}function c(t){for(var n=t.offsetTop,r=t.offsetParent;null!==r;)n+=r.offsetTop,r=r.offsetParent;return n}function f(t,n,r,e,i){var o=u(t),f=c(t)-n;if(f-r<=i){var a=t.$newDom;a||(a=t.cloneNode(!0),(0,d.default)(t,a),t.$newDom=a,a.style.position="fixed",a.style.top=(r||f)+"px",a.style.left=o+"px",a.style.zIndex=e||2,a.style.width="100%",a.style.color="#fff"),a.style.visibility="visible",t.style.visibility="hidden"}else{t.style.visibility="visible";var s=t.$newDom;s&&(s.style.visibility="hidden")}}function a(){var t=document.querySelector(".js-overlay"),n=document.querySelector(".js-header-menu");f(t,document.body.scrollTop,-63,2,0),f(n,document.body.scrollTop,1,3,0)}function s(){document.querySelector("#container").addEventListener("scroll",function(t){a()}),window.addEventListener("scroll",function(t){a()}),a()}var l=r(156),h=e(l),v=r(157),p=(e(v),r(382)),d=e(p),y=r(128),g=e(y),b=r(190),m=e(b),x=r(129);(function(){g.default.versions.mobile&&window.screen.width<800&&(o(),s())})(),(0,x.addLoadEvent)(function(){m.default.init()}),t.exports={}},,,,function(t,n,r){(function(t){"use strict";function n(t,n,r){t[n]||Object[e](t,n,{writable:!0,configurable:!0,value:r})}if(r(381),r(391),r(198),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var e="defineProperty";n(String.prototype,"padLeft","".padStart),n(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&n(Array,t,Function.call.bind([][t]))})}).call(n,function(){return this}())},,,function(t,n,r){r(210),t.exports=r(52).RegExp.escape},,,,function(t,n,r){var e=r(6),i=r(138),o=r(7)("species");t.exports=function(t){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)||(n=void 0),e(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},function(t,n,r){var e=r(202);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){"use strict";var e=r(2),i=r(50),o="number";t.exports=function(t){if("string"!==t&&t!==o&&"default"!==t)throw TypeError("Incorrect hint");return i(e(this),t!=o)}},function(t,n,r){var e=r(72),i=r(125),o=r(116);t.exports=function(t){var n=e(t),r=i.f;if(r)for(var u,c=r(t),f=o.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n,r){var e=r(72),i=r(30);t.exports=function(t,n){for(var r,o=i(t),u=e(o),c=u.length,f=0;c>f;)if(o[r=u[f++]]===n)return r}},function(t,n,r){"use strict";var e=r(208),i=r(121),o=r(26);t.exports=function(){for(var t=o(this),n=arguments.length,r=Array(n),u=0,c=e._,f=!1;n>u;)(r[u]=arguments[u++])===c&&(f=!0);return function(){var e,o=this,u=arguments.length,a=0,s=0;if(!f&&!u)return i(t,r,o);if(e=r.slice(),f)for(;n>a;a++)e[a]===c&&(e[a]=arguments[s++]);for(;u>s;)e.push(arguments[s++]);return i(t,e,o)}}},function(t,n,r){t.exports=r(3)},function(t,n){t.exports=function(t,n){var r=n===Object(n)?function(t){return n[t]}:n;return function(n){return String(n).replace(t,r)}}},function(t,n,r){var e=r(1),i=r(209)(/[\\^$*+?.()|[\]{}]/g,"\\$&");e(e.S,"RegExp",{escape:function(t){return i(t)}})},function(t,n,r){var e=r(1);e(e.P,"Array",{copyWithin:r(160)}),r(78)("copyWithin")},function(t,n,r){"use strict";var e=r(1),i=r(48)(4);e(e.P+e.F*!r(47)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,n,r){var e=r(1);e(e.P,"Array",{fill:r(130)}),r(78)("fill")},function(t,n,r){"use strict";var e=r(1),i=r(48)(2);e(e.P+e.F*!r(47)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(1),i=r(48)(6),o="findIndex",u=!0;o in[]&&Array(1)[o](function(){u=!1}),e(e.P+e.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(78)(o)},function(t,n,r){"use strict";var e=r(1),i=r(48)(5),o="find",u=!0;o in[]&&Array(1)[o](function(){u=!1}),e(e.P+e.F*u,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(78)(o)},function(t,n,r){"use strict";var e=r(1),i=r(48)(0),o=r(47)([].forEach,!0);e(e.P+e.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(53),i=r(1),o=r(17),u=r(169),c=r(137),f=r(16),a=r(131),s=r(154);i(i.S+i.F*!r(123)(function(t){Array.from(t)}),"Array",{from:function(t){var n,r,i,l,h=o(t),v="function"==typeof this?this:Array,p=arguments.length,d=p>1?arguments[1]:void 0,y=void 0!==d,g=0,b=s(h);if(y&&(d=e(d,p>2?arguments[2]:void 0,2)),void 0==b||v==Array&&c(b))for(n=f(h.length),r=new v(n);n>g;g++)a(r,g,y?d(h[g],g):h[g]);else for(l=b.call(h),r=new v;!(i=l.next()).done;g++)a(r,g,y?u(l,d,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,n,r){"use strict";var e=r(1),i=r(117)(!1),o=[].indexOf,u=!!o&&1/[1].indexOf(1,-0)<0;e(e.P+e.F*(u||!r(47)(o)),"Array",{indexOf:function(t){return u?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,n,r){var e=r(1);e(e.S,"Array",{isArray:r(138)})},function(t,n,r){"use strict";var e=r(1),i=r(30),o=[].join;e(e.P+e.F*(r(115)!=Object||!r(47)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,n,r){"use strict";var e=r(1),i=r(30),o=r(67),u=r(16),c=[].lastIndexOf,f=!!c&&1/[1].lastIndexOf(1,-0)<0;e(e.P+e.F*(f||!r(47)(c)),"Array",{lastIndexOf:function(t){if(f)return c.apply(this,arguments)||0;var n=i(this),r=u(n.length),e=r-1;for(arguments.length>1&&(e=Math.min(e,o(arguments[1]))),e<0&&(e=r+e);e>=0;e--)if(e in n&&n[e]===t)return e||0;return-1}})},function(t,n,r){"use strict";var e=r(1),i=r(48)(1);e(e.P+e.F*!r(47)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(1),i=r(131);e(e.S+e.F*r(4)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)i(r,t,arguments[t++]);return r.length=n,r}})},function(t,n,r){"use strict";var e=r(1),i=r(162);e(e.P+e.F*!r(47)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,n,r){"use strict";var e=r(1),i=r(162);e(e.P+e.F*!r(47)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,n,r){"use strict";var e=r(1),i=r(135),o=r(45),u=r(75),c=r(16),f=[].slice;e(e.P+e.F*r(4)(function(){i&&f.call(i)}),"Array",{slice:function(t,n){var r=c(this.length),e=o(this);if(n=void 0===n?r:n,"Array"==e)return f.call(this,t,n);for(var i=u(t,r),a=u(n,r),s=c(a-i),l=Array(s),h=0;h<s;h++)l[h]="String"==e?this.charAt(i+h):this[i+h];return l}})},function(t,n,r){"use strict";var e=r(1),i=r(48)(3);e(e.P+e.F*!r(47)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(1),i=r(26),o=r(17),u=r(4),c=[].sort,f=[1,2,3];e(e.P+e.F*(u(function(){f.sort(void 0)})||!u(function(){f.sort(null)})||!r(47)(c)),"Array",{sort:function(t){return void 0===t?c.call(o(this)):c.call(o(this),i(t))}})},function(t,n,r){r(74)("Array")},function(t,n,r){var e=r(1);e(e.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,r){"use strict";var e=r(1),i=r(4),o=Date.prototype.getTime,u=function(t){return t>9?t:"0"+t};e(e.P+e.F*(i(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!i(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){
if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=n<0?"-":n>9999?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(r>99?r:"0"+u(r))+"Z"}})},function(t,n,r){"use strict";var e=r(1),i=r(17),o=r(50);e(e.P+e.F*r(4)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var n=i(this),r=o(n);return"number"!=typeof r||isFinite(r)?n.toISOString():null}})},function(t,n,r){var e=r(7)("toPrimitive"),i=Date.prototype;e in i||r(27)(i,e,r(204))},function(t,n,r){var e=Date.prototype,i="Invalid Date",o="toString",u=e[o],c=e.getTime;new Date(NaN)+""!=i&&r(28)(e,o,function(){var t=c.call(this);return t===t?u.call(this):i})},function(t,n,r){var e=r(1);e(e.P,"Function",{bind:r(163)})},function(t,n,r){"use strict";var e=r(6),i=r(32),o=r(7)("hasInstance"),u=Function.prototype;o in u||r(11).f(u,o,{value:function(t){if("function"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,r){var e=r(11).f,i=r(66),o=r(24),u=Function.prototype,c="name",f=Object.isExtensible||function(){return!0};c in u||r(10)&&e(u,c,{configurable:!0,get:function(){try{var t=this,n=(""+t).match(/^\s*function ([^ (]*)/)[1];return o(t,c)||!f(t)||e(t,c,i(5,n)),n}catch(t){return""}}})},function(t,n,r){var e=r(1),i=r(171),o=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,n,r){function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=r(1),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:e})},function(t,n,r){var e=r(1),i=Math.atanh;e(e.S+e.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,r){var e=r(1),i=r(142);e(e.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,r){var e=r(1);e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,r){var e=r(1),i=Math.exp;e(e.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,n,r){var e=r(1),i=r(141);e(e.S+e.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,n,r){var e=r(1),i=r(142),o=Math.pow,u=o(2,-52),c=o(2,-23),f=o(2,127)*(2-c),a=o(2,-126),s=function(t){return t+1/u-1/u};e(e.S,"Math",{fround:function(t){var n,r,e=Math.abs(t),o=i(t);return e<a?o*s(e/a/c)*a*c:(n=(1+c/u)*e,r=n-(n-e),r>f||r!=r?o*(1/0):o*r)}})},function(t,n,r){var e=r(1),i=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,o=0,u=0,c=arguments.length,f=0;u<c;)r=i(arguments[u++]),f<r?(e=f/r,o=o*e*e+1,f=r):r>0?(e=r/f,o+=e*e):o+=r;return f===1/0?1/0:f*Math.sqrt(o)}})},function(t,n,r){var e=r(1),i=Math.imul;e(e.S+e.F*r(4)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,n){var r=65535,e=+t,i=+n,o=r&e,u=r&i;return 0|o*u+((r&e>>>16)*u+o*(r&i>>>16)<<16>>>0)}})},function(t,n,r){var e=r(1);e(e.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,n,r){var e=r(1);e(e.S,"Math",{log1p:r(171)})},function(t,n,r){var e=r(1);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,r){var e=r(1);e(e.S,"Math",{sign:r(142)})},function(t,n,r){var e=r(1),i=r(141),o=Math.exp;e(e.S+e.F*r(4)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,n,r){var e=r(1),i=r(141),o=Math.exp;e(e.S,"Math",{tanh:function(t){var n=i(t=+t),r=i(-t);return n==1/0?1:r==1/0?-1:(n-r)/(o(t)+o(-t))}})},function(t,n,r){var e=r(1);e(e.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,r){"use strict";var e=r(3),i=r(24),o=r(45),u=r(136),c=r(50),f=r(4),a=r(71).f,s=r(31).f,l=r(11).f,h=r(82).trim,v="Number",p=e[v],d=p,y=p.prototype,g=o(r(70)(y))==v,b="trim"in String.prototype,m=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){n=b?n.trim():h(n,3);var r,e,i,o=n.charCodeAt(0);if(43===o||45===o){if(88===(r=n.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:e=2,i=49;break;case 79:case 111:e=8,i=55;break;default:return+n}for(var u,f=n.slice(2),a=0,s=f.length;a<s;a++)if((u=f.charCodeAt(a))<48||u>i)return NaN;return parseInt(f,e)}}return+n};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var n=arguments.length<1?0:t,r=this;return r instanceof p&&(g?f(function(){y.valueOf.call(r)}):o(r)!=v)?u(new d(m(n)),r,p):m(n)};for(var x,w=r(10)?a(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;w.length>S;S++)i(d,x=w[S])&&!i(p,x)&&l(p,x,s(d,x));p.prototype=y,y.constructor=p,r(28)(e,v,p)}},function(t,n,r){var e=r(1);e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,r){var e=r(1),i=r(3).isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,n,r){var e=r(1);e(e.S,"Number",{isInteger:r(168)})},function(t,n,r){var e=r(1);e(e.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,r){var e=r(1),i=r(168),o=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,n,r){var e=r(1);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,r){var e=r(1);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,r){var e=r(1),i=r(178);e(e.S+e.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,n,r){var e=r(1),i=r(179);e(e.S+e.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,n,r){"use strict";var e=r(1),i=r(67),o=r(159),u=r(149),c=1..toFixed,f=Math.floor,a=[0,0,0,0,0,0],s="Number.toFixed: incorrect invocation!",l="0",h=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*a[r],a[r]=e%1e7,e=f(e/1e7)},v=function(t){for(var n=6,r=0;--n>=0;)r+=a[n],a[n]=f(r/t),r=r%t*1e7},p=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==a[t]){var r=String(a[t]);n=""===n?r:n+u.call(l,7-r.length)+r}return n},d=function(t,n,r){return 0===n?r:n%2==1?d(t,n-1,r*t):d(t*t,n/2,r)},y=function(t){for(var n=0,r=t;r>=4096;)n+=12,r/=4096;for(;r>=2;)n+=1,r/=2;return n};e(e.P+e.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(4)(function(){c.call({})})),"Number",{toFixed:function(t){var n,r,e,c,f=o(this,s),a=i(t),g="",b=l;if(a<0||a>20)throw RangeError(s);if(f!=f)return"NaN";if(f<=-1e21||f>=1e21)return String(f);if(f<0&&(g="-",f=-f),f>1e-21)if(n=y(f*d(2,69,1))-69,r=n<0?f*d(2,-n,1):f/d(2,n,1),r*=4503599627370496,(n=52-n)>0){for(h(0,r),e=a;e>=7;)h(1e7,0),e-=7;for(h(d(10,e,1),0),e=n-1;e>=23;)v(1<<23),e-=23;v(1<<e),h(1,1),v(2),b=p()}else h(0,r),h(1<<-n,0),b=p()+u.call(l,a);return a>0?(c=b.length,b=g+(c<=a?"0."+u.call(l,a-c)+b:b.slice(0,c-a)+"."+b.slice(c-a))):b=g+b,b}})},function(t,n,r){"use strict";var e=r(1),i=r(4),o=r(159),u=1..toPrecision;e(e.P+e.F*(i(function(){return"1"!==u.call(1,void 0)})||!i(function(){u.call({})})),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,r){var e=r(1);e(e.S+e.F,"Object",{assign:r(172)})},function(t,n,r){var e=r(1);e(e.S,"Object",{create:r(70)})},function(t,n,r){var e=r(1);e(e.S+e.F*!r(10),"Object",{defineProperties:r(173)})},function(t,n,r){var e=r(1);e(e.S+e.F*!r(10),"Object",{defineProperty:r(11).f})},function(t,n,r){var e=r(6),i=r(65).onFreeze;r(49)("freeze",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){var e=r(30),i=r(31).f;r(49)("getOwnPropertyDescriptor",function(){return function(t,n){return i(e(t),n)}})},function(t,n,r){r(49)("getOwnPropertyNames",function(){return r(174).f})},function(t,n,r){var e=r(17),i=r(32);r(49)("getPrototypeOf",function(){return function(t){return i(e(t))}})},function(t,n,r){var e=r(6);r(49)("isExtensible",function(t){return function(n){return!!e(n)&&(!t||t(n))}})},function(t,n,r){var e=r(6);r(49)("isFrozen",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){var e=r(6);r(49)("isSealed",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){var e=r(1);e(e.S,"Object",{is:r(180)})},function(t,n,r){var e=r(17),i=r(72);r(49)("keys",function(){return function(t){return i(e(t))}})},function(t,n,r){var e=r(6),i=r(65).onFreeze;r(49)("preventExtensions",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){var e=r(6),i=r(65).onFreeze;r(49)("seal",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){var e=r(1);e(e.S,"Object",{setPrototypeOf:r(144).set})},function(t,n,r){"use strict";var e=r(114),i={};i[r(7)("toStringTag")]="z",i+""!="[object z]"&&r(28)(Object.prototype,"toString",function(){return"[object "+e(this)+"]"},!0)},function(t,n,r){var e=r(1),i=r(178);e(e.G+e.F*(parseFloat!=i),{parseFloat:i})},function(t,n,r){var e=r(1),i=r(179);e(e.G+e.F*(parseInt!=i),{parseInt:i})},function(t,n,r){"use strict";var e,i,o,u=r(69),c=r(3),f=r(53),a=r(114),s=r(1),l=r(6),h=r(26),v=r(68),p=r(79),d=r(146),y=r(151).set,g=r(143)(),b="Promise",m=c.TypeError,x=c.process,w=c[b],x=c.process,S="process"==a(x),_=function(){},O=!!function(){try{var t=w.resolve(1),n=(t.constructor={})[r(7)("species")]=function(t){t(_,_)};return(S||"function"==typeof PromiseRejectionEvent)&&t.then(_)instanceof n}catch(t){}}(),E=function(t,n){return t===n||t===w&&n===o},P=function(t){var n;return!(!l(t)||"function"!=typeof(n=t.then))&&n},j=function(t){return E(w,t)?new F(t):new i(t)},F=i=function(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw m("Bad Promise constructor");n=t,r=e}),this.resolve=h(n),this.reject=h(r)},M=function(t){try{t()}catch(t){return{error:t}}},A=function(t,n){if(!t._n){t._n=!0;var r=t._c;g(function(){for(var e=t._v,i=1==t._s,o=0;r.length>o;)!function(n){var r,o,u=i?n.ok:n.fail,c=n.resolve,f=n.reject,a=n.domain;try{u?(i||(2==t._h&&I(t),t._h=1),!0===u?r=e:(a&&a.enter(),r=u(e),a&&a.exit()),r===n.promise?f(m("Promise-chain cycle")):(o=P(r))?o.call(r,c,f):c(r)):f(e)}catch(t){f(t)}}(r[o++]);t._c=[],t._n=!1,n&&!t._h&&N(t)})}},N=function(t){y.call(c,function(){var n,r,e,i=t._v;if(T(t)&&(n=M(function(){S?x.emit("unhandledRejection",i,t):(r=c.onunhandledrejection)?r({promise:t,reason:i}):(e=c.console)&&e.error&&e.error("Unhandled promise rejection",i)}),t._h=S||T(t)?2:1),t._a=void 0,n)throw n.error})},T=function(t){if(1==t._h)return!1;for(var n,r=t._a||t._c,e=0;r.length>e;)if(n=r[e++],n.fail||!T(n.promise))return!1;return!0},I=function(t){y.call(c,function(){var n;S?x.emit("rejectionHandled",t):(n=c.onrejectionhandled)&&n({promise:t,reason:t._v})})},k=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),A(n,!0))},L=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw m("Promise can't be resolved itself");(n=P(t))?g(function(){var e={_w:r,_d:!1};try{n.call(t,f(L,e,1),f(k,e,1))}catch(t){k.call(e,t)}}):(r._v=t,r._s=1,A(r,!1))}catch(t){k.call({_w:r,_d:!1},t)}}};O||(w=function(t){v(this,w,b,"_h"),h(t),e.call(this);try{t(f(L,this,1),f(k,this,1))}catch(t){k.call(this,t)}},e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},e.prototype=r(73)(w.prototype,{then:function(t,n){var r=j(d(this,w));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=S?x.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&A(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),F=function(){var t=new e;this.promise=t,this.resolve=f(L,t,1),this.reject=f(k,t,1)}),s(s.G+s.W+s.F*!O,{Promise:w}),r(81)(w,b),r(74)(b),o=r(52)[b],s(s.S+s.F*!O,b,{reject:function(t){var n=j(this);return(0,n.reject)(t),n.promise}}),s(s.S+s.F*(u||!O),b,{resolve:function(t){if(t instanceof w&&E(t.constructor,this))return t;var n=j(this);return(0,n.resolve)(t),n.promise}}),s(s.S+s.F*!(O&&r(123)(function(t){w.all(t).catch(_)})),b,{all:function(t){var n=this,r=j(n),e=r.resolve,i=r.reject,o=M(function(){var r=[],o=0,u=1;p(t,!1,function(t){var c=o++,f=!1;r.push(void 0),u++,n.resolve(t).then(function(t){f||(f=!0,r[c]=t,--u||e(r))},i)}),--u||e(r)});return o&&i(o.error),r.promise},race:function(t){var n=this,r=j(n),e=r.reject,i=M(function(){p(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return i&&e(i.error),r.promise}})},function(t,n,r){var e=r(1),i=r(26),o=r(2),u=(r(3).Reflect||{}).apply,c=Function.apply;e(e.S+e.F*!r(4)(function(){u(function(){})}),"Reflect",{apply:function(t,n,r){var e=i(t),f=o(r);return u?u(e,n,f):c.call(e,n,f)}})},function(t,n,r){var e=r(1),i=r(70),o=r(26),u=r(2),c=r(6),f=r(4),a=r(163),s=(r(3).Reflect||{}).construct,l=f(function(){function t(){}return!(s(function(){},[],t)instanceof t)}),h=!f(function(){s(function(){})});e(e.S+e.F*(l||h),"Reflect",{construct:function(t,n){o(t),u(n);var r=arguments.length<3?t:o(arguments[2]);if(h&&!l)return s(t,n,r);if(t==r){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var e=[null];return e.push.apply(e,n),new(a.apply(t,e))}var f=r.prototype,v=i(c(f)?f:Object.prototype),p=Function.apply.call(t,v,n);return c(p)?p:v}})},function(t,n,r){var e=r(11),i=r(1),o=r(2),u=r(50);i(i.S+i.F*r(4)(function(){Reflect.defineProperty(e.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,n,r){o(t),n=u(n,!0),o(r);try{return e.f(t,n,r),!0}catch(t){return!1}}})},function(t,n,r){var e=r(1),i=r(31).f,o=r(2);e(e.S,"Reflect",{deleteProperty:function(t,n){var r=i(o(t),n);return!(r&&!r.configurable)&&delete t[n]}})},function(t,n,r){"use strict";var e=r(1),i=r(2),o=function(t){this._t=i(t),this._i=0;var n,r=this._k=[];for(n in t)r.push(n)};r(139)(o,"Object",function(){var t,n=this,r=n._k;do{if(n._i>=r.length)return{value:void 0,done:!0}}while(!((t=r[n._i++])in n._t));return{value:t,done:!1}}),e(e.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,n,r){var e=r(31),i=r(1),o=r(2);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(o(t),n)}})},function(t,n,r){var e=r(1),i=r(32),o=r(2);e(e.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,n,r){function e(t,n){var r,c,s=arguments.length<3?t:arguments[2];return a(t)===s?t[n]:(r=i.f(t,n))?u(r,"value")?r.value:void 0!==r.get?r.get.call(s):void 0:f(c=o(t))?e(c,n,s):void 0}var i=r(31),o=r(32),u=r(24),c=r(1),f=r(6),a=r(2);c(c.S,"Reflect",{get:e})},function(t,n,r){var e=r(1);e(e.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,r){var e=r(1),i=r(2),o=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,n,r){var e=r(1);e(e.S,"Reflect",{ownKeys:r(177)})},function(t,n,r){var e=r(1),i=r(2),o=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,n,r){var e=r(1),i=r(144);i&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},function(t,n,r){function e(t,n,r){var f,h,v=arguments.length<4?t:arguments[3],p=o.f(s(t),n);if(!p){if(l(h=u(t)))return e(h,n,r,v);p=a(0)}return c(p,"value")?!(!1===p.writable||!l(v)||(f=o.f(v,n)||a(0),f.value=r,i.f(v,n,f),0)):void 0!==p.set&&(p.set.call(v,r),!0)}var i=r(11),o=r(31),u=r(32),c=r(24),f=r(1),a=r(66),s=r(2),l=r(6);f(f.S,"Reflect",{set:e})},function(t,n,r){var e=r(3),i=r(136),o=r(11).f,u=r(71).f,c=r(122),f=r(120),a=e.RegExp,s=a,l=a.prototype,h=/a/g,v=/a/g,p=new a(h)!==h;if(r(10)&&(!p||r(4)(function(){return v[r(7)("match")]=!1,a(h)!=h||a(v)==v||"/a/i"!=a(h,"i")}))){a=function(t,n){var r=this instanceof a,e=c(t),o=void 0===n;return!r&&e&&t.constructor===a&&o?t:i(p?new s(e&&!o?t.source:t,n):s((e=t instanceof a)?t.source:t,e&&o?f.call(t):n),r?this:l,a)};for(var d=u(s),y=0;d.length>y;)!function(t){t in a||o(a,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})}(d[y++]);l.constructor=a,a.prototype=l,r(28)(e,"RegExp",a)}r(74)("RegExp")},function(t,n,r){r(119)("match",1,function(t,n,r){return[function(r){"use strict";var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},r]})},function(t,n,r){r(119)("replace",2,function(t,n,r){return[function(e,i){"use strict";var o=t(this),u=void 0==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},r]})},function(t,n,r){r(119)("search",1,function(t,n,r){return[function(r){"use strict";var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},r]})},function(t,n,r){r(119)("split",2,function(t,n,e){"use strict";var i=r(122),o=e,u=[].push,c="split",f="length",a="lastIndex";if("c"=="abbc"[c](/(b)*/)[1]||4!="test"[c](/(?:)/,-1)[f]||2!="ab"[c](/(?:ab)*/)[f]||4!="."[c](/(.?)(.?)/)[f]||"."[c](/()()/)[f]>1||""[c](/.?/)[f]){var s=void 0===/()??/.exec("")[1];e=function(t,n){var r=String(this);if(void 0===t&&0===n)return[];if(!i(t))return o.call(r,t,n);var e,c,l,h,v,p=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),y=0,g=void 0===n?4294967295:n>>>0,b=new RegExp(t.source,d+"g");for(s||(e=new RegExp("^"+b.source+"$(?!\\s)",d));(c=b.exec(r))&&!((l=c.index+c[0][f])>y&&(p.push(r.slice(y,c.index)),!s&&c[f]>1&&c[0].replace(e,function(){for(v=1;v<arguments[f]-2;v++)void 0===arguments[v]&&(c[v]=void 0)}),c[f]>1&&c.index<r[f]&&u.apply(p,c.slice(1)),h=c[0][f],y=l,p[f]>=g));)b[a]===c.index&&b[a]++;return y===r[f]?!h&&b.test("")||p.push(""):p.push(r.slice(y)),p[f]>g?p.slice(0,g):p}}else"0"[c](void 0,0)[f]&&(e=function(t,n){return void 0===t&&0===n?[]:o.call(this,t,n)});return[function(r,i){var o=t(this),u=void 0==r?void 0:r[n];return void 0!==u?u.call(r,o,i):e.call(String(o),r,i)},e]})},function(t,n,r){"use strict";r(184);var e=r(2),i=r(120),o=r(10),u="toString",c=/./[u],f=function(t){r(28)(RegExp.prototype,u,t,!0)};r(4)(function(){return"/a/b"!=c.call({source:"a",flags:"b"})})?f(function(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):c.name!=u&&f(function(){return c.call(this)})},function(t,n,r){"use strict";r(29)("anchor",function(t){return function(n){return t(this,"a","name",n)}})},function(t,n,r){"use strict";r(29)("big",function(t){return function(){return t(this,"big","","")}})},function(t,n,r){"use strict";r(29)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,n,r){"use strict";r(29)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,n,r){"use strict";var e=r(1),i=r(147)(!1);e(e.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,n,r){"use strict";var e=r(1),i=r(16),o=r(148),u="endsWith",c=""[u];e(e.P+e.F*r(134)(u),"String",{endsWith:function(t){var n=o(this,t,u),r=arguments.length>1?arguments[1]:void 0,e=i(n.length),f=void 0===r?e:Math.min(i(r),e),a=String(t);return c?c.call(n,a,f):n.slice(f-a.length,f)===a}})},function(t,n,r){"use strict";r(29)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,n,r){"use strict";r(29)("fontcolor",function(t){return function(n){return t(this,"font","color",n)}})},function(t,n,r){"use strict";r(29)("fontsize",function(t){return function(n){return t(this,"font","size",n)}})},function(t,n,r){var e=r(1),i=r(75),o=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?o(n):o(55296+((n-=65536)>>10),n%1024+56320))}return r.join("")}})},function(t,n,r){"use strict";var e=r(1),i=r(148),o="includes";e(e.P+e.F*r(134)(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,r){"use strict";r(29)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,n,r){"use strict";var e=r(147)(!0);r(140)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n,r){"use strict";r(29)("link",function(t){return function(n){return t(this,"a","href",n)}})},function(t,n,r){var e=r(1),i=r(30),o=r(16);e(e.S,"String",{raw:function(t){for(var n=i(t.raw),r=o(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),c<e&&u.push(String(arguments[c]));return u.join("")}})},function(t,n,r){var e=r(1);e(e.P,"String",{repeat:r(149)})},function(t,n,r){"use strict";r(29)("small",function(t){return function(){return t(this,"small","","")}})},function(t,n,r){"use strict";var e=r(1),i=r(16),o=r(148),u="startsWith",c=""[u];e(e.P+e.F*r(134)(u),"String",{startsWith:function(t){var n=o(this,t,u),r=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return c?c.call(n,e,r):n.slice(r,r+e.length)===e}})},function(t,n,r){"use strict";r(29)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,n,r){"use strict";r(29)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,n,r){"use strict";r(29)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,n,r){"use strict";r(82)("trim",function(t){return function(){return t(this,3)}})},function(t,n,r){"use strict";var e=r(3),i=r(24),o=r(10),u=r(1),c=r(28),f=r(65).KEY,a=r(4),s=r(126),l=r(81),h=r(76),v=r(7),p=r(182),d=r(153),y=r(206),g=r(205),b=r(138),m=r(2),x=r(30),w=r(50),S=r(66),_=r(70),O=r(174),E=r(31),P=r(11),j=r(72),F=E.f,M=P.f,A=O.f,N=e.Symbol,T=e.JSON,I=T&&T.stringify,k="prototype",L=v("_hidden"),R=v("toPrimitive"),C={}.propertyIsEnumerable,D=s("symbol-registry"),U=s("symbols"),W=s("op-symbols"),G=Object[k],B="function"==typeof N,V=e.QObject,z=!V||!V[k]||!V[k].findChild,q=o&&a(function(){return 7!=_(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=F(G,n);e&&delete G[n],M(t,n,r),e&&t!==G&&M(G,n,e)}:M,K=function(t){var n=U[t]=_(N[k]);return n._k=t,n},J=B&&"symbol"==typeof N.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof N},Y=function(t,n,r){return t===G&&Y(W,n,r),m(t),n=w(n,!0),m(r),i(U,n)?(r.enumerable?(i(t,L)&&t[L][n]&&(t[L][n]=!1),r=_(r,{enumerable:S(0,!1)})):(i(t,L)||M(t,L,S(1,{})),t[L][n]=!0),q(t,n,r)):M(t,n,r)},H=function(t,n){m(t);for(var r,e=g(n=x(n)),i=0,o=e.length;o>i;)Y(t,r=e[i++],n[r]);return t},$=function(t,n){return void 0===n?_(t):H(_(t),n)},X=function(t){var n=C.call(this,t=w(t,!0));return!(this===G&&i(U,t)&&!i(W,t))&&(!(n||!i(this,t)||!i(U,t)||i(this,L)&&this[L][t])||n)},Q=function(t,n){if(t=x(t),n=w(n,!0),t!==G||!i(U,n)||i(W,n)){var r=F(t,n);return!r||!i(U,n)||i(t,L)&&t[L][n]||(r.enumerable=!0),r}},Z=function(t){for(var n,r=A(x(t)),e=[],o=0;r.length>o;)i(U,n=r[o++])||n==L||n==f||e.push(n);return e},tt=function(t){for(var n,r=t===G,e=A(r?W:x(t)),o=[],u=0;e.length>u;)!i(U,n=e[u++])||r&&!i(G,n)||o.push(U[n]);return o};B||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(r){this===G&&n.call(W,r),i(this,L)&&i(this[L],t)&&(this[L][t]=!1),q(this,t,S(1,r))};return o&&z&&q(G,t,{configurable:!0,set:n}),K(t)},c(N[k],"toString",function(){return this._k}),E.f=Q,P.f=Y,r(71).f=O.f=Z,r(116).f=X,r(125).f=tt,o&&!r(69)&&c(G,"propertyIsEnumerable",X,!0),p.f=function(t){return K(v(t))}),u(u.G+u.W+u.F*!B,{Symbol:N});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)v(nt[rt++]);for(var nt=j(v.store),rt=0;nt.length>rt;)d(nt[rt++]);u(u.S+u.F*!B,"Symbol",{for:function(t){return i(D,t+="")?D[t]:D[t]=N(t)},keyFor:function(t){if(J(t))return y(D,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!B,"Object",{create:$,defineProperty:Y,defineProperties:H,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),T&&u(u.S+u.F*(!B||a(function(){var t=N();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!J(t)){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);return n=e[1],"function"==typeof n&&(r=n),!r&&b(n)||(n=function(t,n){if(r&&(n=r.call(this,t,n)),!J(n))return n}),e[1]=n,I.apply(T,e)}}}),N[k][R]||r(27)(N[k],R,N[k].valueOf),l(N,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n,r){"use strict";var e=r(1),i=r(127),o=r(152),u=r(2),c=r(75),f=r(16),a=r(6),s=r(3).ArrayBuffer,l=r(146),h=o.ArrayBuffer,v=o.DataView,p=i.ABV&&s.isView,d=h.prototype.slice,y=i.VIEW,g="ArrayBuffer";e(e.G+e.W+e.F*(s!==h),{ArrayBuffer:h}),e(e.S+e.F*!i.CONSTR,g,{isView:function(t){return p&&p(t)||a(t)&&y in t}}),e(e.P+e.U+e.F*r(4)(function(){return!new h(2).slice(1,void 0).byteLength}),g,{slice:function(t,n){if(void 0!==d&&void 0===n)return d.call(u(this),t);for(var r=u(this).byteLength,e=c(t,r),i=c(void 0===n?r:n,r),o=new(l(this,h))(f(i-e)),a=new v(this),s=new v(o),p=0;e<i;)s.setUint8(p++,a.getUint8(e++));return o}}),r(74)(g)},function(t,n,r){var e=r(1);e(e.G+e.W+e.F*!r(127).ABV,{DataView:r(152).DataView})},function(t,n,r){r(55)("Float32",4,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(55)("Float64",8,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(55)("Int16",2,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(55)("Int32",4,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(55)("Int8",1,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(55)("Uint16",2,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(55)("Uint32",4,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(55)("Uint8",1,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(55)("Uint8",1,function(t){return function(n,r,e){return t(this,n,r,e)}},!0)},function(t,n,r){"use strict";var e=r(166);r(118)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(this,t,!0)}},e,!1,!0)},function(t,n,r){"use strict";var e=r(1),i=r(117)(!0);e(e.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(78)("includes")},function(t,n,r){var e=r(1),i=r(143)(),o=r(3).process,u="process"==r(45)(o);e(e.G,{asap:function(t){var n=u&&o.domain;i(n?n.bind(t):t)}})},function(t,n,r){var e=r(1),i=r(45);e(e.S,"Error",{isError:function(t){return"Error"===i(t)}})},function(t,n,r){var e=r(1);e(e.P+e.R,"Map",{toJSON:r(165)("Map")})},function(t,n,r){var e=r(1);e(e.S,"Math",{iaddh:function(t,n,r,e){var i=t>>>0,o=n>>>0,u=r>>>0;return o+(e>>>0)+((i&u|(i|u)&~(i+u>>>0))>>>31)|0}})},function(t,n,r){var e=r(1);e(e.S,"Math",{imulh:function(t,n){var r=65535,e=+t,i=+n,o=e&r,u=i&r,c=e>>16,f=i>>16,a=(c*u>>>0)+(o*u>>>16);return c*f+(a>>16)+((o*f>>>0)+(a&r)>>16)}})},function(t,n,r){var e=r(1);e(e.S,"Math",{isubh:function(t,n,r,e){var i=t>>>0,o=n>>>0,u=r>>>0;return o-(e>>>0)-((~i&u|~(i^u)&i-u>>>0)>>>31)|0}})},function(t,n,r){var e=r(1);e(e.S,"Math",{umulh:function(t,n){var r=65535,e=+t,i=+n,o=e&r,u=i&r,c=e>>>16,f=i>>>16,a=(c*u>>>0)+(o*u>>>16);return c*f+(a>>>16)+((o*f>>>0)+(a&r)>>>16)}})},function(t,n,r){"use strict";var e=r(1),i=r(17),o=r(26),u=r(11);r(10)&&e(e.P+r(124),"Object",{__defineGetter__:function(t,n){u.f(i(this),t,{get:o(n),enumerable:!0,configurable:!0})}})},function(t,n,r){"use strict";var e=r(1),i=r(17),o=r(26),u=r(11);r(10)&&e(e.P+r(124),"Object",{__defineSetter__:function(t,n){u.f(i(this),t,{set:o(n),enumerable:!0,configurable:!0})}})},function(t,n,r){var e=r(1),i=r(176)(!0);e(e.S,"Object",{entries:function(t){return i(t)}})},function(t,n,r){var e=r(1),i=r(177),o=r(30),u=r(31),c=r(131);e(e.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,r=o(t),e=u.f,f=i(r),a={},s=0;f.length>s;)c(a,n=f[s++],e(r,n));return a}})},function(t,n,r){"use strict";var e=r(1),i=r(17),o=r(50),u=r(32),c=r(31).f;r(10)&&e(e.P+r(124),"Object",{__lookupGetter__:function(t){var n,r=i(this),e=o(t,!0);do{if(n=c(r,e))return n.get}while(r=u(r))}})},function(t,n,r){"use strict";var e=r(1),i=r(17),o=r(50),u=r(32),c=r(31).f;r(10)&&e(e.P+r(124),"Object",{__lookupSetter__:function(t){var n,r=i(this),e=o(t,!0);do{if(n=c(r,e))return n.set}while(r=u(r))}})},function(t,n,r){var e=r(1),i=r(176)(!1);e(e.S,"Object",{values:function(t){return i(t)}})},function(t,n,r){"use strict";var e=r(1),i=r(3),o=r(52),u=r(143)(),c=r(7)("observable"),f=r(26),a=r(2),s=r(68),l=r(73),h=r(27),v=r(79),p=v.RETURN,d=function(t){return null==t?void 0:f(t)},y=function(t){var n=t._c;n&&(t._c=void 0,n())},g=function(t){return void 0===t._o},b=function(t){g(t)||(t._o=void 0,y(t))},m=function(t,n){a(t),this._c=void 0,this._o=t,t=new x(this);try{var r=n(t),e=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){e.unsubscribe()}:f(r),this._c=r)}catch(n){return void t.error(n)}g(this)&&y(this)};m.prototype=l({},{unsubscribe:function(){b(this)}});var x=function(t){this._s=t};x.prototype=l({},{next:function(t){var n=this._s;if(!g(n)){var r=n._o;try{var e=d(r.next);if(e)return e.call(r,t)}catch(t){try{b(n)}finally{throw t}}}},error:function(t){var n=this._s;if(g(n))throw t;var r=n._o;n._o=void 0;try{var e=d(r.error);if(!e)throw t;t=e.call(r,t)}catch(t){try{y(n)}finally{throw t}}return y(n),t},complete:function(t){var n=this._s;if(!g(n)){var r=n._o;n._o=void 0;try{var e=d(r.complete);t=e?e.call(r,t):void 0}catch(t){try{y(n)}finally{throw t}}return y(n),t}}});var w=function(t){s(this,w,"Observable","_f")._f=f(t)};l(w.prototype,{subscribe:function(t){return new m(t,this._f)},forEach:function(t){var n=this;return new(o.Promise||i.Promise)(function(r,e){f(t);var i=n.subscribe({next:function(n){try{return t(n)}catch(t){e(t),i.unsubscribe()}},error:e,complete:r})})}}),l(w,{from:function(t){var n="function"==typeof this?this:w,r=d(a(t)[c]);if(r){var e=a(r.call(t));return e.constructor===n?e:new n(function(t){return e.subscribe(t)})}return new n(function(n){var r=!1;return u(function(){if(!r){try{if(v(t,!1,function(t){if(n.next(t),r)return p})===p)return}catch(t){if(r)throw t;return void n.error(t)}n.complete()}}),function(){r=!0}})},of:function(){for(var t=0,n=arguments.length,r=Array(n);t<n;)r[t]=arguments[t++];return new("function"==typeof this?this:w)(function(t){var n=!1;return u(function(){if(!n){for(var e=0;e<r.length;++e)if(t.next(r[e]),n)return;t.complete()}}),function(){n=!0}})}}),h(w.prototype,c,function(){return this}),e(e.G,{Observable:w}),r(74)("Observable")},function(t,n,r){var e=r(54),i=r(2),o=e.key,u=e.set;e.exp({defineMetadata:function(t,n,r,e){u(t,n,i(r),o(e))}})},function(t,n,r){var e=r(54),i=r(2),o=e.key,u=e.map,c=e.store;e.exp({deleteMetadata:function(t,n){var r=arguments.length<3?void 0:o(arguments[2]),e=u(i(n),r,!1);if(void 0===e||!e.delete(t))return!1;if(e.size)return!0;var f=c.get(n);return f.delete(r),!!f.size||c.delete(n)}})},function(t,n,r){var e=r(185),i=r(161),o=r(54),u=r(2),c=r(32),f=o.keys,a=o.key,s=function(t,n){var r=f(t,n),o=c(t);if(null===o)return r;var u=s(o,n);return u.length?r.length?i(new e(r.concat(u))):u:r};o.exp({getMetadataKeys:function(t){return s(u(t),arguments.length<2?void 0:a(arguments[1]))}})},function(t,n,r){var e=r(54),i=r(2),o=r(32),u=e.has,c=e.get,f=e.key,a=function(t,n,r){if(u(t,n,r))return c(t,n,r);var e=o(n);return null!==e?a(t,e,r):void 0};e.exp({getMetadata:function(t,n){return a(t,i(n),arguments.length<3?void 0:f(arguments[2]))}})},function(t,n,r){var e=r(54),i=r(2),o=e.keys,u=e.key;e.exp({getOwnMetadataKeys:function(t){
return o(i(t),arguments.length<2?void 0:u(arguments[1]))}})},function(t,n,r){var e=r(54),i=r(2),o=e.get,u=e.key;e.exp({getOwnMetadata:function(t,n){return o(t,i(n),arguments.length<3?void 0:u(arguments[2]))}})},function(t,n,r){var e=r(54),i=r(2),o=r(32),u=e.has,c=e.key,f=function(t,n,r){if(u(t,n,r))return!0;var e=o(n);return null!==e&&f(t,e,r)};e.exp({hasMetadata:function(t,n){return f(t,i(n),arguments.length<3?void 0:c(arguments[2]))}})},function(t,n,r){var e=r(54),i=r(2),o=e.has,u=e.key;e.exp({hasOwnMetadata:function(t,n){return o(t,i(n),arguments.length<3?void 0:u(arguments[2]))}})},function(t,n,r){var e=r(54),i=r(2),o=r(26),u=e.key,c=e.set;e.exp({metadata:function(t,n){return function(r,e){c(t,n,(void 0!==e?i:o)(r),u(e))}}})},function(t,n,r){var e=r(1);e(e.P+e.R,"Set",{toJSON:r(165)("Set")})},function(t,n,r){"use strict";var e=r(1),i=r(147)(!0);e(e.P,"String",{at:function(t){return i(this,t)}})},function(t,n,r){"use strict";var e=r(1),i=r(46),o=r(16),u=r(122),c=r(120),f=RegExp.prototype,a=function(t,n){this._r=t,this._s=n};r(139)(a,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),e(e.P,"String",{matchAll:function(t){if(i(this),!u(t))throw TypeError(t+" is not a regexp!");var n=String(this),r="flags"in f?String(t.flags):c.call(t),e=new RegExp(t.source,~r.indexOf("g")?r:"g"+r);return e.lastIndex=o(t.lastIndex),new a(e,n)}})},function(t,n,r){"use strict";var e=r(1),i=r(181);e(e.P,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,r){"use strict";var e=r(1),i=r(181);e(e.P,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,r){"use strict";r(82)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,n,r){"use strict";r(82)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,n,r){r(153)("asyncIterator")},function(t,n,r){r(153)("observable")},function(t,n,r){var e=r(1);e(e.S,"System",{global:r(3)})},function(t,n,r){for(var e=r(155),i=r(28),o=r(3),u=r(27),c=r(80),f=r(7),a=f("iterator"),s=f("toStringTag"),l=c.Array,h=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],v=0;v<5;v++){var p,d=h[v],y=o[d],g=y&&y.prototype;if(g){g[a]||u(g,a,l),g[s]||u(g,s,d),c[d]=l;for(p in e)g[p]||i(g,p,e[p],!0)}}},function(t,n,r){var e=r(1),i=r(151);e(e.G+e.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,n,r){var e=r(3),i=r(1),o=r(121),u=r(207),c=e.navigator,f=!!c&&/MSIE .\./.test(c.userAgent),a=function(t){return f?function(n,r){return t(o(u,[].slice.call(arguments,2),"function"==typeof n?n:Function(n)),r)}:t};i(i.G+i.B+i.F*f,{setTimeout:a(e.setTimeout),setInterval:a(e.setInterval)})},function(t,n,r){r(330),r(269),r(271),r(270),r(273),r(275),r(280),r(274),r(272),r(282),r(281),r(277),r(278),r(276),r(268),r(279),r(283),r(284),r(236),r(238),r(237),r(286),r(285),r(256),r(266),r(267),r(257),r(258),r(259),r(260),r(261),r(262),r(263),r(264),r(265),r(239),r(240),r(241),r(242),r(243),r(244),r(245),r(246),r(247),r(248),r(249),r(250),r(251),r(252),r(253),r(254),r(255),r(317),r(322),r(329),r(320),r(312),r(313),r(318),r(323),r(325),r(308),r(309),r(310),r(311),r(314),r(315),r(316),r(319),r(321),r(324),r(326),r(327),r(328),r(231),r(233),r(232),r(235),r(234),r(220),r(218),r(224),r(221),r(227),r(229),r(217),r(223),r(214),r(228),r(212),r(226),r(225),r(219),r(222),r(211),r(213),r(216),r(215),r(230),r(155),r(302),r(307),r(184),r(303),r(304),r(305),r(306),r(287),r(183),r(185),r(186),r(342),r(331),r(332),r(337),r(340),r(341),r(335),r(338),r(336),r(339),r(333),r(334),r(288),r(289),r(290),r(291),r(292),r(295),r(293),r(294),r(296),r(297),r(298),r(299),r(301),r(300),r(343),r(369),r(372),r(371),r(373),r(374),r(370),r(375),r(376),r(354),r(357),r(353),r(351),r(352),r(355),r(356),r(346),r(368),r(377),r(345),r(347),r(349),r(348),r(350),r(359),r(360),r(362),r(361),r(364),r(363),r(365),r(366),r(367),r(344),r(358),r(380),r(379),r(378),t.exports=r(52)},function(t,n){function r(t,n){if("string"==typeof n)return t.insertAdjacentHTML("afterend",n);var r=t.nextSibling;return r?t.parentNode.insertBefore(n,r):t.parentNode.appendChild(n)}t.exports=r},,,,,,,,,function(t,n,r){(function(n,r){!function(n){"use strict";function e(t,n,r,e){var i=n&&n.prototype instanceof o?n:o,u=Object.create(i.prototype),c=new p(e||[]);return u._invoke=s(t,r,c),u}function i(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}function o(){}function u(){}function c(){}function f(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function a(t){function n(r,e,o,u){var c=i(t[r],t,e);if("throw"!==c.type){var f=c.arg,a=f.value;return a&&"object"==typeof a&&m.call(a,"__await")?Promise.resolve(a.__await).then(function(t){n("next",t,o,u)},function(t){n("throw",t,o,u)}):Promise.resolve(a).then(function(t){f.value=t,o(f)},u)}u(c.arg)}function e(t,r){function e(){return new Promise(function(e,i){n(t,r,e,i)})}return o=o?o.then(e,e):e()}"object"==typeof r&&r.domain&&(n=r.domain.bind(n));var o;this._invoke=e}function s(t,n,r){var e=P;return function(o,u){if(e===F)throw new Error("Generator is already running");if(e===M){if("throw"===o)throw u;return y()}for(r.method=o,r.arg=u;;){var c=r.delegate;if(c){var f=l(c,r);if(f){if(f===A)continue;return f}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(e===P)throw e=M,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e=F;var a=i(t,n,r);if("normal"===a.type){if(e=r.done?M:j,a.arg===A)continue;return{value:a.arg,done:r.done}}"throw"===a.type&&(e=M,r.method="throw",r.arg=a.arg)}}}function l(t,n){var r=t.iterator[n.method];if(r===g){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=g,l(t,n),"throw"===n.method))return A;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var e=i(r,t.iterator,n.arg);if("throw"===e.type)return n.method="throw",n.arg=e.arg,n.delegate=null,A;var o=e.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=g),n.delegate=null,A):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}function h(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function v(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)}function d(t){if(t){var n=t[w];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,e=function n(){for(;++r<t.length;)if(m.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=g,n.done=!0,n};return e.next=e}}return{next:y}}function y(){return{value:g,done:!0}}var g,b=Object.prototype,m=b.hasOwnProperty,x="function"==typeof Symbol?Symbol:{},w=x.iterator||"@@iterator",S=x.asyncIterator||"@@asyncIterator",_=x.toStringTag||"@@toStringTag",O="object"==typeof t,E=n.regeneratorRuntime;if(E)return void(O&&(t.exports=E));E=n.regeneratorRuntime=O?t.exports:{},E.wrap=e;var P="suspendedStart",j="suspendedYield",F="executing",M="completed",A={},N={};N[w]=function(){return this};var T=Object.getPrototypeOf,I=T&&T(T(d([])));I&&I!==b&&m.call(I,w)&&(N=I);var k=c.prototype=o.prototype=Object.create(N);u.prototype=k.constructor=c,c.constructor=u,c[_]=u.displayName="GeneratorFunction",E.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===u||"GeneratorFunction"===(n.displayName||n.name))},E.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,_ in t||(t[_]="GeneratorFunction")),t.prototype=Object.create(k),t},E.awrap=function(t){return{__await:t}},f(a.prototype),a.prototype[S]=function(){return this},E.AsyncIterator=a,E.async=function(t,n,r,i){var o=new a(e(t,n,r,i));return E.isGeneratorFunction(n)?o:o.next().then(function(t){return t.done?t.value:o.next()})},f(k),k[_]="Generator",k.toString=function(){return"[object Generator]"},E.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function r(){for(;n.length;){var e=n.pop();if(e in t)return r.value=e,r.done=!1,r}return r.done=!0,r}},E.values=d,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(v),!t)for(var n in this)"t"===n.charAt(0)&&m.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=g)},stop:function(){this.done=!0;var t=this.tryEntries[0],n=t.completion;if("throw"===n.type)throw n.arg;return this.rval},dispatchException:function(t){function n(n,e){return o.type="throw",o.arg=t,r.next=n,e&&(r.method="next",r.arg=g),!!e}if(this.done)throw t;for(var r=this,e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=m.call(i,"catchLoc"),c=m.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc<=this.prev&&m.call(e,"finallyLoc")&&this.prev<e.finallyLoc){var i=e;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=n,i?(this.method="next",this.next=i.finallyLoc,A):this.complete(o)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),A},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),v(r),A}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var i=e.arg;v(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:d(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=g),A}}}("object"==typeof n?n:"object"==typeof window?window:"object"==typeof self?self:this)}).call(n,function(){return this}(),r(158))}])</script><script src="/./main.0cf68a.js"></script><script>!function(){!function(e){var t=document.createElement("script");document.getElementsByTagName("body")[0].appendChild(t),t.setAttribute("src",e)}("/slider.e37972.js")}()</script>


    
<div class="tools-col" q-class="show:isShow,hide:isShow|isFalse" q-on="click:stop(e)">
  <div class="tools-nav header-menu">
    
    
      
      
      
    
      
      
      
    
      
      
      
    
    

    <ul style="width: 70%">
    
    
      
      <li style="width: 33.333333333333336%" q-on="click: openSlider(e, 'innerArchive')"><a href="javascript:void(0)" q-class="active:innerArchive">所有文章</a></li>
      
        
      
      <li style="width: 33.333333333333336%" q-on="click: openSlider(e, 'friends')"><a href="javascript:void(0)" q-class="active:friends">友链</a></li>
      
        
      
      <li style="width: 33.333333333333336%" q-on="click: openSlider(e, 'aboutme')"><a href="javascript:void(0)" q-class="active:aboutme">关于我</a></li>
      
        
    </ul>
  </div>
  <div class="tools-wrap">
    
    	<section class="tools-section tools-section-all" q-show="innerArchive">
        <div class="search-wrap">
          <input class="search-ipt" q-model="search" type="text" placeholder="find something…">
          <i class="icon-search icon" q-show="search|isEmptyStr"></i>
          <i class="icon-close icon" q-show="search|isNotEmptyStr" q-on="click:clearChose(e)"></i>
        </div>
        <div class="widget tagcloud search-tag">
          <p class="search-tag-wording">tag:</p>
          <label class="search-switch">
            <input type="checkbox" q-on="click:toggleTag(e)" q-attr="checked:showTags">
          </label>
          <ul class="article-tag-list" q-show="showTags">
            
            <div class="clearfix"></div>
          </ul>
        </div>
        <ul class="search-ul">
          <p q-show="jsonFail" style="padding: 20px; font-size: 12px;">
            缺失模块。<br/>1、请确保node版本大于6.2<br/>2、在博客根目录（注意不是yilia根目录）执行以下命令：<br/> npm i hexo-generator-json-content --save<br/><br/>
            3、在根目录_config.yml里添加配置：
<pre style="font-size: 12px;" q-show="jsonFail">
  jsonContent:
    meta: false
    pages: false
    posts:
      title: true
      date: true
      path: true
      text: false
      raw: false
      content: false
      slug: false
      updated: false
      comments: false
      link: false
      permalink: false
      excerpt: false
      categories: false
      tags: true
</pre>
          </p>
          <li class="search-li" q-repeat="items" q-show="isShow">
            <a q-attr="href:path|urlformat" class="search-title"><i class="icon-quo-left icon"></i><span q-text="title"></span></a>
            <p class="search-time">
              <i class="icon-calendar icon"></i>
              <span q-text="date|dateformat"></span>
            </p>
            <p class="search-tag">
              <i class="icon-price-tags icon"></i>
              <span q-repeat="tags" q-on="click:choseTag(e, name)" q-text="name|tagformat"></span>
            </p>
          </li>
        </ul>
    	</section>
    

    
    	<section class="tools-section tools-section-friends" q-show="friends">
  		
        <ul class="search-ul">
          
            <li class="search-li">
              <a href="http://yiyaobingo.3vkj.net/" target="_blank" class="search-title"><i class="icon-quo-left icon"></i>笔者放置个人项目的链接</a>
            </li>
          
            <li class="search-li">
              <a href="https://blog.csdn.net/hannah2233" target="_blank" class="search-title"><i class="icon-quo-left icon"></i>CSDN</a>
            </li>
          
            <li class="search-li">
              <a href="https://www.cnblogs.com/yiyao-bingo/" target="_blank" class="search-title"><i class="icon-quo-left icon"></i>博客园</a>
            </li>
          
            <li class="search-li">
              <a href="/null" target="_blank" class="search-title"><i class="icon-quo-left icon"></i>特此声明：第一个链接是 http://yiyaobingo.3vkj.net/）</a>
            </li>
          
            <li class="search-li">
              <a href="/null" target="_blank" class="search-title"><i class="icon-quo-left icon"></i>（本人申领的免费空间，项目是在github找的开源项目，仅作学习使用）</a>
            </li>
          
        </ul>
  		
    	</section>
    

    
    	<section class="tools-section tools-section-me" q-show="aboutme">
  	  	
  	  		<div class="aboutme-wrap" id="js-aboutme">哇！欢迎大家的到访啊！！&lt;br/&gt;超开心在这里见到你们的！！！&lt;br/&gt; 希望大家在笔者的学习笔记中&lt;br/&gt;能够get到新的知识&lt;br/&gt; 同样欢迎大家关注我的CSDN，知乎，微信公众号，B站呦... 同名为  翼遥bingo</div>
  	  	
    	</section>
    
  </div>
  
</div>
    <!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

    <!-- Background of PhotoSwipe. 
         It's a separate element as animating opacity is faster than rgba(). -->
    <div class="pswp__bg"></div>

    <!-- Slides wrapper with overflow:hidden. -->
    <div class="pswp__scroll-wrap">

        <!-- Container that holds slides. 
            PhotoSwipe keeps only 3 of them in the DOM to save memory.
            Don't modify these 3 pswp__item elements, data is added later on. -->
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>

        <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
        <div class="pswp__ui pswp__ui--hidden">

            <div class="pswp__top-bar">

                <!--  Controls are self-explanatory. Order can be changed. -->

                <div class="pswp__counter"></div>

                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>

                <button class="pswp__button pswp__button--share" style="display:none" title="Share"></button>

                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>

                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

                <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                <!-- element will get class pswp__preloader--active when preloader is running -->
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                      <div class="pswp__preloader__cut">
                        <div class="pswp__preloader__donut"></div>
                      </div>
                    </div>
                </div>
            </div>

            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div> 
            </div>

            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>

            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>

            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>

        </div>

    </div>

</div>
  </div>
</body>
</html>